Browse Source

Model: missing setCurrent()

trethaller 6 years ago
parent
commit
3a74fd4685
1 changed files with 2 additions and 0 deletions
  1. 2 0
      hide/view/Model.hx

+ 2 - 0
hide/view/Model.hx

@@ -437,6 +437,7 @@ class Model extends FileView {
 	}
 
 	function setAnimation( file : String ) {
+		scene.setCurrent();
 		if( timeline != null ) {
 			timeline.remove();
 			timeline = null;
@@ -481,6 +482,7 @@ class Model extends FileView {
 	}
 
 	function buildTimeline() {
+		scene.setCurrent();
 		if( timeline != null ) {
 			timeline.remove();
 			timeline = null;