From: Reino Ruusu Date: Thu, 12 Mar 2020 13:10:10 +0000 (+0200) Subject: Fix error in checking of changes in rotation angle X-Git-Tag: v1.43.0~38 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=a47ce2dfb6481ad1f57915ebddb540d7e5c8baba;p=simantics%2F3d.git Fix error in checking of changes in rotation angle gitlab #90 Change-Id: Id0c6c071382d62a01aaaaeacb2b2ff220c118f91 --- 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");