mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
another approach
This commit is contained in:
parent
aac824fb99
commit
d7188bac0b
1 changed files with 1 additions and 4 deletions
|
@ -81,6 +81,7 @@ void EntityTreeRenderer::clear() {
|
|||
}
|
||||
OctreeRenderer::clear();
|
||||
_entityScripts.clear();
|
||||
_entitiesScriptEngine->disconnect();
|
||||
}
|
||||
|
||||
void EntityTreeRenderer::init() {
|
||||
|
@ -969,10 +970,6 @@ void EntityTreeRenderer::checkAndCallUnload(const EntityItemID& entityID) {
|
|||
QScriptValueList entityArgs = createEntityArgs(entityID);
|
||||
entityScript.property("unload").call(entityScript, entityArgs);
|
||||
}
|
||||
|
||||
// In the event that the entity script connected to any of our signals
|
||||
// we want to disconnect it so we don't have anything dangling
|
||||
_entitiesScriptEngine->disconnect(entityScript.toQObject());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue