3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-27 07:15:30 +02:00

Emit finished in Agent::aboutToFinish() if script execution hasn't started yet

This commit is contained in:
Simon Walton 2018-07-12 16:48:41 -07:00
parent 2c629e2ec8
commit a305a6a534

View file

@ -828,6 +828,8 @@ void Agent::aboutToFinish() {
if (_scriptEngine) {
_scriptEngine->stop();
} else {
emit finished();
}
// our entity tree is going to go away so tell that to the EntityScriptingInterface