Fixed isEqual to equals in GeometryBatchFactory and in TestMaterialCompare

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9291 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 13 years ago
parent d50efde277
commit 91ea95328e
  1. 2
      engine/src/test/jme3test/material/TestMaterialCompare.java
  2. 2
      engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java

@ -86,7 +86,7 @@ public class TestMaterialCompare extends SimpleApplication {
}
private void testMats(Material mat1, Material mat2, boolean expected) {
if (mat2.isEqual(mat1)) {
if (mat2.equals(mat1)) {
System.out.print(mat1.getName() + " equals " + mat2.getName());
if(expected){
System.out.println(" success");

@ -291,7 +291,7 @@ public class GeometryBatchFactory {
if (outList == null) {
//trying to compare materials with the isEqual method
for (Material mat : matToGeom.keySet()) {
if (geom.getMaterial().isEqual(mat)) {
if (geom.getMaterial().equals(mat)) {
outList = matToGeom.get(mat);
}
}

Loading…
Cancel
Save