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

Fixed isEqual to equals in GeometryBatchFactory and in TestMaterialCompare

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9291 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om пре 13 година
родитељ
комит
91ea95328e

+ 1 - 1
engine/src/test/jme3test/material/TestMaterialCompare.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");

+ 1 - 1
engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java

@@ -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);
                     }
                 }