BatchNode : fixed an issue where the material map entry was passed to the material.contentEqual instead of the material.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9574 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 13 years ago
parent a38c61a65a
commit f3d56b3ee6
  1. 2
      engine/src/core/com/jme3/scene/BatchNode.java

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

Loading…
Cancel
Save