浏览代码

minor fix

Nicolas Cannasse 5 年之前
父节点
当前提交
6e029c68a4
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      hrt/prefab/Object3D.hx

+ 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);