|
|
@@ -238,9 +238,9 @@ public class BatchNode extends Node implements Savable {
|
|
|
List<Geometry> list = map.get(g.getMaterial());
|
|
|
if (list == null) {
|
|
|
//trying to compare materials with the isEqual method
|
|
|
- for (Material mat : map.keySet()) {
|
|
|
- if (g.getMaterial().isEqual(mat)) {
|
|
|
- list = map.get(mat);
|
|
|
+ for ( Map.Entry<Material, List<Geometry>> mat : map.entrySet()) {
|
|
|
+ if (g.getMaterial().isEqual(mat.getKey())) {
|
|
|
+ list = mat.getValue();
|
|
|
}
|
|
|
}
|
|
|
}
|