Parcourir la source

- fix moved update calls

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9036 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 il y a 14 ans
Parent
commit
99c7797ea5

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

@@ -352,6 +352,8 @@ public class GeometryBatchFactory {
         Geometry geom = new Geometry();
         Mesh mesh = new Mesh();
         mergeGeometries(geometries, mesh, atlas);
+        mesh.updateCounts();
+        mesh.updateBound();
         geom.setMesh(mesh);
 
         Material mat = new Material(mgr, "Common/MatDefs/Light/Lighting.j3md");