From 8b2f18593706d1bbac2d323d3404b4e0c3d59ec4 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Mon, 3 Feb 2014 10:05:26 -0800 Subject: [PATCH] always emit update even when no servers --- libraries/script-engine/src/ScriptEngine.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/libraries/script-engine/src/ScriptEngine.cpp b/libraries/script-engine/src/ScriptEngine.cpp index cf9b582e2c..cf49a9cddb 100644 --- a/libraries/script-engine/src/ScriptEngine.cpp +++ b/libraries/script-engine/src/ScriptEngine.cpp @@ -208,11 +208,7 @@ void ScriptEngine::run() { break; } - bool willSendVisualDataCallBack = false; if (_voxelsScriptingInterface.getVoxelPacketSender()->serversExist()) { - // allow the scripter's call back to setup visual data - willSendVisualDataCallBack = true; - // release the queue of edit voxel messages. _voxelsScriptingInterface.getVoxelPacketSender()->releaseQueuedMessages(); @@ -223,9 +219,6 @@ void ScriptEngine::run() { } if (_particlesScriptingInterface.getParticlePacketSender()->serversExist()) { - // allow the scripter's call back to setup visual data - willSendVisualDataCallBack = true; - // release the queue of edit voxel messages. _particlesScriptingInterface.getParticlePacketSender()->releaseQueuedMessages(); @@ -251,9 +244,7 @@ void ScriptEngine::run() { nodeList->broadcastToNodes(avatarPacket, NodeSet() << NodeType::AvatarMixer); } - if (willSendVisualDataCallBack) { - emit willSendVisualDataCallback(); - } + emit willSendVisualDataCallback(); if (_engine.hasUncaughtException()) { int line = _engine.uncaughtExceptionLineNumber();