always emit update even when no servers

This commit is contained in:
ZappoMan 2014-02-03 10:05:26 -08:00
parent 906d913d71
commit 8b2f185937

View file

@ -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();