mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-10 21:49:38 -06:00
scriptsync hotfix. all received scripts are now executed once received instead of one per frame.
This commit is contained in:
@@ -627,7 +627,7 @@ void ScriptEngine::deserialize(SyncBuffer* syncBuffer){
|
||||
|
||||
void ScriptEngine::postSynchronizationPreDraw(){
|
||||
_mutex.lock();
|
||||
if (!_receivedScripts.empty()){
|
||||
while(!_receivedScripts.empty()){
|
||||
runScript(_receivedScripts.back());
|
||||
_receivedScripts.pop_back();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user