Don't do fade effect once physics kick in
Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all
Unified · Split
| @@ -1237,6 +1237,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) : · 1236 unmodified lines | ||
| 1237 | 1237 | _defaultSkybox->setCubemap(_defaultSkyboxTexture); |
| 1238 | 1238 | _defaultSkybox->setColor({ 1.0, 1.0, 1.0 }); |
| 1239 | 1239 | |
| 1240 | + EntityItem::setEntitiesShouldFadeFunction([this]() { | |
| 1241 | + SharedNodePointer entityServerNode = DependencyManager::get<NodeList>()->soloNodeOfType(NodeType::EntityServer); | |
| 1242 | + return entityServerNode && !isPhysicsEnabled(); | |
| 1243 | + }); | |
| 1244 | + | |
| 1240 | 1245 | // After all of the constructor is completed, then set firstRun to false. |
| 1241 | 1246 | Setting::Handle<bool> firstRun{ Settings::firstRun, true }; |
| 1242 | 1247 | firstRun.set(false); |