2
0
Эх сурвалжийг харах

Revert "Fix Moving Model culling in FX"

Tom Spira 1 жил өмнө
parent
commit
41f996fa3c
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  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;