History

don't fade after physics kick in

SamGondelman committed 10 years ago

Commit ccca6d91 parent 4c663b95 files · +26 −10Browse files

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

Unified · Split

interface/src/Application.cpp+5−0
@@ -1244,6 +1244,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) : · 1243 unmodified lines
1244 _defaultSkybox->setCubemap(_defaultSkyboxTexture);1244 _defaultSkybox->setCubemap(_defaultSkyboxTexture);
1245 _defaultSkybox->setColor({ 1.0, 1.0, 1.0 });1245 _defaultSkybox->setColor({ 1.0, 1.0, 1.0 });
1246 1246
1247 EntityItem::setEntitiesShouldFadeFunction([this]() {
1248 SharedNodePointer entityServerNode = DependencyManager::get<NodeList>()->soloNodeOfType(NodeType::EntityServer);
1249 return entityServerNode && !isPhysicsEnabled();
1250 });
1251
1247 // After all of the constructor is completed, then set firstRun to false.1252 // After all of the constructor is completed, then set firstRun to false.
1248 Setting::Handle<bool> firstRun{ Settings::firstRun, true };1253 Setting::Handle<bool> firstRun{ Settings::firstRun, true };
1249 firstRun.set(false);1254 firstRun.set(false);