]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/GeometryComponent.java
Remove listener calls when property values not updated.
[simantics/3d.git] / org.simantics.plant3d / src / org / simantics / plant3d / scenegraph / GeometryComponent.java
index 6c6c1b66a7f555b4097197a6473c6312b258abce..c784b4113f8ebd650f878245a8c9dd45ebd8ebb8 100644 (file)
@@ -7,6 +7,7 @@ import java.util.HashMap;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
+import java.util.Objects;
 import java.util.Set;
 
 import org.jcae.opencascade.jni.TopoDS_Shape;
@@ -133,7 +134,7 @@ public class GeometryComponent {
                for (String id : parameters.keySet()) {
                        Object currentValue = currentParameters.get(id);
                        Object newValue = parameters.get(id);
-                       if (currentValue == newValue)
+                       if (Objects.equals(currentValue, newValue))
                                continue;
                        if (newValue == null) {
                            continue;