mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +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;
|
_state = null;
|
||||||
}
|
}
|
||||||
if (_skeleton != null) _skeleton = null;
|
if (_skeleton != null) _skeleton = null;
|
||||||
|
dispatchEventWith(starling.events.Event.REMOVE_FROM_JUGGLER);
|
||||||
|
removeFromParent();
|
||||||
|
|
||||||
|
// this will remove also all starling event listeners
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user