From f3d56b3ee65d5a51953a43cea6eee991cafdd924 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Sat, 21 Jul 2012 05:47:40 +0000 Subject: [PATCH] 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 --- engine/src/core/com/jme3/scene/BatchNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/core/com/jme3/scene/BatchNode.java b/engine/src/core/com/jme3/scene/BatchNode.java index 5e7d3da71..6be339992 100644 --- a/engine/src/core/com/jme3/scene/BatchNode.java +++ b/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> mat : map.entrySet()) { - if (g.getMaterial().contentEquals(mat)) { + if (g.getMaterial().contentEquals(mat.getKey())) { list = mat.getValue(); } }