History

fix behavior with no entity server

Brad Hefta-Gaub committed 10 years ago

Commit e879f221 parent 74a38351 file · +2 −1Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+2−1
@@ -4685,7 +4685,8 @@ void Application::packetSent(quint64 length) { · 4684 unmodified lines
4685void Application::registerScriptEngineWithApplicationServices(ScriptEngine* scriptEngine) {4685void Application::registerScriptEngineWithApplicationServices(ScriptEngine* scriptEngine) {
4686 4686
4687 scriptEngine->setEmitScriptUpdatesFunction([this]() {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 // setup the packet senders and jurisdiction listeners of the script engine's scripting interfaces so4692 // setup the packet senders and jurisdiction listeners of the script engine's scripting interfaces so

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t