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
This commit is contained in:
parent
a38c61a65a
commit
f3d56b3ee6
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user