From a47ce2dfb6481ad1f57915ebddb540d7e5c8baba Mon Sep 17 00:00:00 2001 From: Reino Ruusu Date: Thu, 12 Mar 2020 15:10:10 +0200 Subject: [PATCH] Fix error in checking of changes in rotation angle gitlab #90 Change-Id: Id0c6c071382d62a01aaaaeacb2b2ff220c118f91 --- .../plant3d/scenegraph/controlpoint/PipeControlPoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java index 08fa2622..00a1560e 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java @@ -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"); -- 2.47.1