Browse Source

Revert "Fix Moving Model culling in FX"

Tom Spira 1 năm trước cách đây
mục cha
commit
41f996fa3c
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      hrt/prefab/Model.hx

+ 2 - 0
hrt/prefab/Model.hx

@@ -31,9 +31,11 @@ class Model extends Object3D {
 				root.addChild(obj);
 				obj = root;
 			}
+			#if editor
 			for(m in obj.getMeshes())
 				if( !Std.isOfType(m,h3d.scene.Skin) )
 					m.cullingCollider = new h3d.col.ObjectCollider(m, m.primitive.getBounds().toSphere());
+			#end
 			if( retargetAnim ) applyRetarget(obj);
 
 			obj.name = name;