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