History

Merge branch 'master' into 21055

David Rowe committed 10 years ago

Commit caf1a932 parents 4818ad2 f84f98f7 files · +240 −49Browse files

Showing the changes to interface/src/Application.cpp (1 of 7 files). Show all

Unified · Split

interface/src/Application.cpp+8−3
@@ -2170,7 +2170,7 @@ bool Application::event(QEvent* event) { · 2169 unmodified lines
21702170 // handle custom URL
21712171 if (event->type() == QEvent::FileOpen) {
21722172
2173− QFileOpenEvent* fileEvent = static_cast<QFileOpenEvent*>(event);
2173+ QFileOpenEvent* fileEvent = static_cast<QFileOpenEvent*>(event);
21742174
21752175 QUrl url = fileEvent->url();
21762176
@@ -4361,8 +4361,13 @@ namespace render { · 2184 unmodified lines
43614361 auto scene = DependencyManager::get<SceneScriptingInterface>()->getStage();
43624362 auto sceneKeyLight = scene->getKeyLight();
43634363 auto defaultSkyboxAmbientTexture = qApp->getDefaultSkyboxAmbientTexture();
4364− sceneKeyLight->setAmbientSphere(defaultSkyboxAmbientTexture->getIrradiance());
4365− sceneKeyLight->setAmbientMap(defaultSkyboxAmbientTexture);
4364+ if (defaultSkyboxAmbientTexture) {
4365+ sceneKeyLight->setAmbientSphere(defaultSkyboxAmbientTexture->getIrradiance());
4366+ sceneKeyLight->setAmbientMap(defaultSkyboxAmbientTexture);
4367+ } else {
4368+ static QString repeatedMessage = LogHandler::getInstance().addRepeatedMessageRegex(
4369+ "Failed to get a valid Default Skybox Ambient Texture ? probably because it couldn't be find during initialization step");
4370+ }
43664371 // fall through: render defaults skybox
43674372 } else {
43684373 break;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t