trethaller 7 năm trước cách đây
mục cha
commit
d7b7fddfeb
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      hide/prefab/fx/Emitter.hx

+ 2 - 0
hide/prefab/fx/Emitter.hx

@@ -761,6 +761,8 @@ class Emitter extends Object3D {
 
 	override function setSelected( ctx : Context, b : Bool ) {
 		var emitterObj = Std.instance(ctx.local3d, EmitterObject);
+		if(emitterObj == null)
+			return;
 		var debugShape : h3d.scene.Object = emitterObj.find(c -> if(c.name == "_highlight") c else null);
 		if(debugShape != null)
 			debugShape.visible = b;