浏览代码

Add all sub geometry bounds to ModelLibrary.hx geometry.

clementlandrin 11 月之前
父节点
当前提交
cd3f4aab79
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hrt/prefab/l3d/ModelLibrary.hx

+ 1 - 0
hrt/prefab/l3d/ModelLibrary.hx

@@ -711,6 +711,7 @@ class ModelLibrary extends Prefab {
 				g2.vertexFormat = g.vertexFormat;
 				g2.indexCounts = [];
 				g2.bounds = g.bounds;
+				geomAll.bounds.add(g2.bounds);
 				hmd.geometries.push(g2);
 
 				dataToStore.push({ g : g2, origin : g, lib : lib, data : libData, offset : currentVertex });