Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -4685,7 +4685,8 @@ void Application::packetSent(quint64 length) { · 4684 unmodified lines | ||
| 4685 | 4685 | void Application::registerScriptEngineWithApplicationServices(ScriptEngine* scriptEngine) { |
| 4686 | 4686 | |
| 4687 | 4687 | scriptEngine->setEmitScriptUpdatesFunction([this]() { |
| 4688 | − return isPhysicsEnabled(); | |
| 4688 | + SharedNodePointer entityServerNode = DependencyManager::get<NodeList>()->soloNodeOfType(NodeType::EntityServer); | |
| 4689 | + return !entityServerNode || isPhysicsEnabled(); | |
| 4689 | 4690 | }); |
| 4690 | 4691 | |
| 4691 | 4692 | // setup the packet senders and jurisdiction listeners of the script engine's scripting interfaces so |