소스 검색

GeometryBatchFactory, fixed wrong model bounds updating

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10642 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om 12 년 전
부모
커밋
2c9bef5ebf
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java

+ 2 - 2
engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java

@@ -333,10 +333,10 @@ public class GeometryBatchFactory {
                 makeLods(geomsForMat, mesh);
             }
             mesh.updateCounts();
-            mesh.updateBound();
-
+           
             Geometry out = new Geometry("batch[" + (batchNum++) + "]", mesh);
             out.setMaterial(mat);
+            out.updateModelBound();
             retVal.add(out);
         }