GeometryBatchFactory, fixed wrong model bounds updating
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10642 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
5095396ce3
commit
2c9bef5ebf
@ -333,10 +333,10 @@ public class GeometryBatchFactory {
|
|||||||
makeLods(geomsForMat, mesh);
|
makeLods(geomsForMat, mesh);
|
||||||
}
|
}
|
||||||
mesh.updateCounts();
|
mesh.updateCounts();
|
||||||
mesh.updateBound();
|
|
||||||
|
|
||||||
Geometry out = new Geometry("batch[" + (batchNum++) + "]", mesh);
|
Geometry out = new Geometry("batch[" + (batchNum++) + "]", mesh);
|
||||||
out.setMaterial(mat);
|
out.setMaterial(mat);
|
||||||
|
out.updateModelBound();
|
||||||
retVal.add(out);
|
retVal.add(out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user