]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Fix error in checking of changes in rotation angle 87/3987/1
authorReino Ruusu <reino.ruusu@semantum.fi>
Thu, 12 Mar 2020 13:10:10 +0000 (15:10 +0200)
committerReino Ruusu <reino.ruusu@semantum.fi>
Thu, 12 Mar 2020 13:10:10 +0000 (15:10 +0200)
gitlab #90

Change-Id: Id0c6c071382d62a01aaaaeacb2b2ff220c118f91

org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java

index 08fa2622311cc3ed915f6c5f004e51f85f3e8a52..00a1560ef9378fe0151d6f61b98a074f3b051ed3 100644 (file)
@@ -462,7 +462,7 @@ public class PipeControlPoint extends G3DNode implements IP3DNode {
                }
                if (this.rotationAngle != null && Math.abs(this.rotationAngle-rotationAngle) < MathTools.NEAR_ZERO)
                        return;
-               if (Objects.equals(rotationAngle, rotationAngle))
+               if (Objects.equals(this.rotationAngle, rotationAngle))
                        return;
                this.rotationAngle = rotationAngle;
                firePropertyChanged("rotationAngle");