Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all
Unified · Split
| @@ -208,11 +208,7 @@ void ScriptEngine::run() { · 207 unmodified lines | |||
| 208 | break; | 208 | break; |
| 209 | } | 209 | } |
| 210 | 210 | ||
| 211 | bool willSendVisualDataCallBack = false; | ||
| 212 | if (_voxelsScriptingInterface.getVoxelPacketSender()->serversExist()) { | 211 | if (_voxelsScriptingInterface.getVoxelPacketSender()->serversExist()) { |
| 213 | // allow the scripter's call back to setup visual data | ||
| 214 | willSendVisualDataCallBack = true; | ||
| 215 | |||
| 216 | // release the queue of edit voxel messages. | 212 | // release the queue of edit voxel messages. |
| 217 | _voxelsScriptingInterface.getVoxelPacketSender()->releaseQueuedMessages(); | 213 | _voxelsScriptingInterface.getVoxelPacketSender()->releaseQueuedMessages(); |
| 218 | 214 | ||
| @@ -223,9 +219,6 @@ void ScriptEngine::run() { · 4 unmodified lines | |||
| 223 | } | 219 | } |
| 224 | 220 | ||
| 225 | if (_particlesScriptingInterface.getParticlePacketSender()->serversExist()) { | 221 | if (_particlesScriptingInterface.getParticlePacketSender()->serversExist()) { |
| 226 | // allow the scripter's call back to setup visual data | ||
| 227 | willSendVisualDataCallBack = true; | ||
| 228 | |||
| 229 | // release the queue of edit voxel messages. | 222 | // release the queue of edit voxel messages. |
| 230 | _particlesScriptingInterface.getParticlePacketSender()->releaseQueuedMessages(); | 223 | _particlesScriptingInterface.getParticlePacketSender()->releaseQueuedMessages(); |
| 231 | 224 | ||
| @@ -251,9 +244,7 @@ void ScriptEngine::run() { · 19 unmodified lines | |||
| 251 | nodeList->broadcastToNodes(avatarPacket, NodeSet() << NodeType::AvatarMixer); | 244 | nodeList->broadcastToNodes(avatarPacket, NodeSet() << NodeType::AvatarMixer); |
| 252 | } | 245 | } |
| 253 | 246 | ||
| 254 | if (willSendVisualDataCallBack) { | 247 | emit willSendVisualDataCallback(); |
| 255 | emit willSendVisualDataCallback(); | ||
| 256 | } | ||
| 257 | 248 | ||
| 258 | if (_engine.hasUncaughtException()) { | 249 | if (_engine.hasUncaughtException()) { |
| 259 | int line = _engine.uncaughtExceptionLineNumber(); | 250 | int line = _engine.uncaughtExceptionLineNumber(); |