diff --git a/libraries/script-engine/src/ScriptEngine.cpp b/libraries/script-engine/src/ScriptEngine.cpp index 2046fd622d..863cc28a94 100644 --- a/libraries/script-engine/src/ScriptEngine.cpp +++ b/libraries/script-engine/src/ScriptEngine.cpp @@ -710,7 +710,13 @@ void ScriptEngine::run() { // since we're in non-threaded mode, call process so that the packets are sent if (!entityScriptingInterface->getEntityPacketSender()->isThreaded()) { - entityScriptingInterface->getEntityPacketSender()->process(); + // wait here till the edit packet sender is completely done sending + while (entityScriptingInterface->getEntityPacketSender()->hasPacketsToSend()) { + entityScriptingInterface->getEntityPacketSender()->process(); + QCoreApplication::processEvents(); + } + } else { + // FIXME - do we need to have a similar "wait here" loop for non-threaded packet senders? } }