From 99c7797ea5f9876310534cacf53e11ffc92b3c76 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Sun, 15 Jan 2012 00:18:25 +0000 Subject: [PATCH] - fix moved update calls git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9036 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java b/engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java index 96a07bd55..10cc17429 100644 --- a/engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java +++ b/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");