浏览代码

Missing setCurrent()

trethaller 6 年之前
父节点
当前提交
e903f813c2
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      hide/prefab/EditContext.hx
  2. 1 0
      hide/prefab/fx/AnimEvent.hx

+ 1 - 0
hide/prefab/EditContext.hx

@@ -16,6 +16,7 @@ class EditContext {
 	function get_ide() return hide.Ide.inst;
 	function get_ide() return hide.Ide.inst;
 	public function onChange(p : Prefab, propName : String) {
 	public function onChange(p : Prefab, propName : String) {
 		var ctx = getContext(p);
 		var ctx = getContext(p);
+		scene.setCurrent();
 		if(ctx != null) {
 		if(ctx != null) {
 			p.updateInstance(ctx, propName);
 			p.updateInstance(ctx, propName);
 			var parent = p.parent;
 			var parent = p.parent;

+ 1 - 0
hide/prefab/fx/AnimEvent.hx

@@ -80,6 +80,7 @@ class AnimEvent extends hide.prefab.fx.Event {
 			if( animation != null )
 			if( animation != null )
 				select.val(animation);
 				select.val(animation);
 			select.change(function(_) {
 			select.change(function(_) {
+				ctx.scene.setCurrent();
 				var v = select.val();
 				var v = select.val();
 				var prev = animation;
 				var prev = animation;
 				if( v == "" ) {
 				if( v == "" ) {