Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all
Unified · Split
| @@ -1244,6 +1244,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) : · 1243 unmodified lines | ||
| 1244 | 1244 | _defaultSkybox->setCubemap(_defaultSkyboxTexture); |
| 1245 | 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 | 1252 | // After all of the constructor is completed, then set firstRun to false. |
| 1248 | 1253 | Setting::Handle<bool> firstRun{ Settings::firstRun, true }; |
| 1249 | 1254 | firstRun.set(false); |