From e879f22c952772658276153fb3bd8690affe31fe Mon Sep 17 00:00:00 2001 From: Brad Hefta-Gaub Date: Thu, 28 Jul 2016 15:15:52 -0700 Subject: [PATCH] fix behavior with no entity server --- interface/src/Application.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index e294ae38ad..5d50a1c9fe 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -4685,7 +4685,8 @@ void Application::packetSent(quint64 length) { void Application::registerScriptEngineWithApplicationServices(ScriptEngine* scriptEngine) { scriptEngine->setEmitScriptUpdatesFunction([this]() { - return isPhysicsEnabled(); + SharedNodePointer entityServerNode = DependencyManager::get()->soloNodeOfType(NodeType::EntityServer); + return !entityServerNode || isPhysicsEnabled(); }); // setup the packet senders and jurisdiction listeners of the script engine's scripting interfaces so