Browse Source

disable inaccurate culling collider on skinned meshes

Nicolas Cannasse 4 years ago
parent
commit
7c0a24d994
1 changed files with 2 additions and 1 deletions
  1. 2 1
      hrt/prefab/Model.hx

+ 2 - 1
hrt/prefab/Model.hx

@@ -33,7 +33,8 @@ class Model extends Object3D {
 			}
 			#if editor
 			for(m in obj.getMeshes())
-				m.cullingCollider = new h3d.col.ObjectCollider(m, m.primitive.getBounds().toSphere());
+				if( !Std.is(m,h3d.scene.Skin) )
+					m.cullingCollider = new h3d.col.ObjectCollider(m, m.primitive.getBounds().toSphere());
 			#end
 			if( retargetAnim ) applyRetarget(obj);