History

first cut at making sure entity scripts are called on the entities script engine thread

Brad Hefta-Gaub committed 11 years ago

Commit 8eacdbf1 parent e8ede3a5 files · +62 −21Browse files

Showing the changes to libraries/script-engine/src/ScriptCache.cpp (1 of 5 files). Show all

Unified · Split

libraries/script-engine/src/ScriptCache.cpp+1−0
@@ -68,6 +68,7 @@ void ScriptCache::scriptDownloaded() { · 67 unmodified lines
68 qCDebug(scriptengine) << "Done downloading script at:" << url.toString();68 qCDebug(scriptengine) << "Done downloading script at:" << url.toString();
69 69
70 foreach(ScriptUser* user, scriptUsers) {70 foreach(ScriptUser* user, scriptUsers) {
71 // FIXME: I got a crash here, How do we know that user is still valid?
71 user->scriptContentsAvailable(url, _scriptCache[url]);72 user->scriptContentsAvailable(url, _scriptCache[url]);
72 }73 }
73 } else {74 } else {