mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[haxe][starling] SkeletonSprite remove from stage and juggler when disposed.
This commit is contained in:
parent
044bb47479
commit
4ea6ee9ff8
@ -423,6 +423,10 @@ class SkeletonSprite extends DisplayObject implements IAnimatable {
|
||||
_state = null;
|
||||
}
|
||||
if (_skeleton != null) _skeleton = null;
|
||||
dispatchEventWith(starling.events.Event.REMOVE_FROM_JUGGLER);
|
||||
removeFromParent();
|
||||
|
||||
// this will remove also all starling event listeners
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user