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
46854685 void Application::registerScriptEngineWithApplicationServices(ScriptEngine* scriptEngine) {
46864686
46874687 scriptEngine->setEmitScriptUpdatesFunction([this]() {
4688− return isPhysicsEnabled();
4688+ SharedNodePointer entityServerNode = DependencyManager::get<NodeList>()->soloNodeOfType(NodeType::EntityServer);
4689+ return !entityServerNode || isPhysicsEnabled();
46894690 });
46904691
46914692 // 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