소스 검색

Model: missing setCurrent()

trethaller 6 년 전
부모
커밋
3a74fd4685
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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 ) {
 	function setAnimation( file : String ) {
+		scene.setCurrent();
 		if( timeline != null ) {
 		if( timeline != null ) {
 			timeline.remove();
 			timeline.remove();
 			timeline = null;
 			timeline = null;
@@ -481,6 +482,7 @@ class Model extends FileView {
 	}
 	}
 
 
 	function buildTimeline() {
 	function buildTimeline() {
+		scene.setCurrent();
 		if( timeline != null ) {
 		if( timeline != null ) {
 			timeline.remove();
 			timeline.remove();
 			timeline = null;
 			timeline = null;