History

always emit update even when no servers

ZappoMan committed 12 years ago

Commit 8b2f1851 parent 906d9131 file · +1 −10Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+1−10
@@ -208,11 +208,7 @@ void ScriptEngine::run() { · 207 unmodified lines
208208 break;
209209 }
210210
211− bool willSendVisualDataCallBack = false;
212211 if (_voxelsScriptingInterface.getVoxelPacketSender()->serversExist()) {
213− // allow the scripter's call back to setup visual data
214− willSendVisualDataCallBack = true;
215−
216212 // release the queue of edit voxel messages.
217213 _voxelsScriptingInterface.getVoxelPacketSender()->releaseQueuedMessages();
218214
@@ -223,9 +219,6 @@ void ScriptEngine::run() { · 4 unmodified lines
223219 }
224220
225221 if (_particlesScriptingInterface.getParticlePacketSender()->serversExist()) {
226− // allow the scripter's call back to setup visual data
227− willSendVisualDataCallBack = true;
228−
229222 // release the queue of edit voxel messages.
230223 _particlesScriptingInterface.getParticlePacketSender()->releaseQueuedMessages();
231224
@@ -251,9 +244,7 @@ void ScriptEngine::run() { · 19 unmodified lines
251244 nodeList->broadcastToNodes(avatarPacket, NodeSet() << NodeType::AvatarMixer);
252245 }
253246
254− if (willSendVisualDataCallBack) {
255− emit willSendVisualDataCallback();
256− }
247+ emit willSendVisualDataCallback();
257248
258249 if (_engine.hasUncaughtException()) {
259250 int line = _engine.uncaughtExceptionLineNumber();