mirror of
https://github.com/overte-org/overte.git
synced 2025-04-09 02:33:19 +02:00
Merge pull request #9979 from jherico/crash_fix
Fix crash in render-perf-test
This commit is contained in:
commit
aa1883ba85
1 changed files with 1 additions and 1 deletions
|
@ -996,7 +996,7 @@ void EntityTreeRenderer::checkAndCallPreload(const EntityItemID& entityID, const
|
|||
}
|
||||
bool shouldLoad = entity->shouldPreloadScript() && _entitiesScriptEngine;
|
||||
QString scriptUrl = entity->getScript();
|
||||
if ((unloadFirst && shouldLoad) || scriptUrl.isEmpty()) {
|
||||
if (shouldLoad && (unloadFirst || scriptUrl.isEmpty())) {
|
||||
_entitiesScriptEngine->unloadEntityScript(entityID);
|
||||
entity->scriptHasUnloaded();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue