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
12441244 _defaultSkybox->setCubemap(_defaultSkyboxTexture);
12451245 _defaultSkybox->setColor({ 1.0, 1.0, 1.0 });
12461246
1247+ EntityItem::setEntitiesShouldFadeFunction([this]() {
1248+ SharedNodePointer entityServerNode = DependencyManager::get<NodeList>()->soloNodeOfType(NodeType::EntityServer);
1249+ return entityServerNode && !isPhysicsEnabled();
1250+ });
1251+
12471252 // After all of the constructor is completed, then set firstRun to false.
12481253 Setting::Handle<bool> firstRun{ Settings::firstRun, true };
12491254 firstRun.set(false);