Преглед изворни кода

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
rem..om пре 13 година
родитељ
комит
f3d56b3ee6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      engine/src/core/com/jme3/scene/BatchNode.java

+ 1 - 1
engine/src/core/com/jme3/scene/BatchNode.java

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