2
0
Nicolas Cannasse 5 жил өмнө
parent
commit
6e029c68a4

+ 2 - 0
hrt/prefab/Object3D.hx

@@ -178,6 +178,8 @@ class Object3D extends Prefab {
 
 			var localMat = mesh.getAbsPos().clone();
 			localMat.multiply(localMat, invRootMat);
+
+			if( mesh.primitive == null ) continue;
 			var lb = mesh.primitive.getBounds().clone();
 			lb.transform(localMat);
 			bounds.add(lb);