package org.simantics.g3d.scenegraph.structural;\r
\r
import java.util.Collection;\r
+import java.util.Objects;\r
\r
import javax.vecmath.Quat4d;\r
import javax.vecmath.Vector3d;\r
@Override\r
@SetPropertyValue(G3D.URIs.hasPosition)\r
public void setPosition(Vector3d position) {\r
+ if (Objects.equals(this.position, position))\r
+ return;\r
+ \r
this.position = position;\r
firePropertyChanged(G3D.URIs.hasPosition);\r
}\r
@Override\r
@SetPropertyValue(G3D.URIs.hasOrientation)\r
public void setOrientation(Quat4d orientation) {\r
+ if (Objects.equals(this.orientation, orientation))\r
+ return;\r
+ \r
this.orientation = orientation;\r
firePropertyChanged(G3D.URIs.hasOrientation);\r
}\r