NORMEN IS ALWAYS RIGHT
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9360 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
2339b7d2e5
commit
960837fe02
@ -217,12 +217,14 @@ public class Material implements CloneableSmartAsset, Cloneable, Savable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Compares two materials and returns true if they are equal.
|
* Compares two materials and returns true if they are equal.
|
||||||
* This methods compare definition, parameters, additional render states
|
* This methods compare definition, parameters, additional render states.
|
||||||
|
* Since materials are mutable objects, implementing equals() properly is not possible,
|
||||||
|
* hence the name dynamicEquals().
|
||||||
*
|
*
|
||||||
* @param otherObj the material to compare to this material
|
* @param otherObj the material to compare to this material
|
||||||
* @return true if the materials are equal.
|
* @return true if the materials are equal.
|
||||||
*/
|
*/
|
||||||
public boolean equals(Object otherObj) {
|
public boolean dynamicEquals(Object otherObj) {
|
||||||
if (!(otherObj instanceof Material)) {
|
if (!(otherObj instanceof Material)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user