Explorar o código

GeometryBatchFactory, fixed wrong model bounds updating

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10642 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om %!s(int64=12) %!d(string=hai) anos
pai
achega
2c9bef5ebf

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