X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d.csg%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fcsg%2Fscenegraph2%2FBarrelNode.java;h=5e0d5c0bc1273b23cd8e46eb5601835ce79a46a1;hb=refs%2Fchanges%2F08%2F3908%2F2;hp=a6c3334bc926f87addab14513388ff3f3303d080;hpb=87b3241ec277ba3d8e414b26186a032c9cdcaeed;p=simantics%2F3d.git diff --git a/org.simantics.g3d.csg/src/org/simantics/g3d/csg/scenegraph2/BarrelNode.java b/org.simantics.g3d.csg/src/org/simantics/g3d/csg/scenegraph2/BarrelNode.java index a6c3334b..5e0d5c0b 100644 --- a/org.simantics.g3d.csg/src/org/simantics/g3d/csg/scenegraph2/BarrelNode.java +++ b/org.simantics.g3d.csg/src/org/simantics/g3d/csg/scenegraph2/BarrelNode.java @@ -1,3 +1,14 @@ +/******************************************************************************* + * Copyright (c) 2012, 2013 Association for Decentralized Information Management in + * Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ package org.simantics.g3d.csg.scenegraph2; import org.jcae.opencascade.jni.BRepBuilderAPI_MakeEdge; @@ -29,6 +40,8 @@ public class BarrelNode extends CSGnode { @RelatedSetValue(CSG.URIs.HasMinorRadius) @SetPropertyValue(CSG.URIs.HasMinorRadius) public void setR1(double r1) { + if (this.r1 == r1) + return; this.r1 = r1; firePropertyChanged(CSG.URIs.HasMinorRadius); } @@ -36,6 +49,8 @@ public class BarrelNode extends CSGnode { @RelatedSetValue(CSG.URIs.HasMajorRadius) @SetPropertyValue(CSG.URIs.HasMajorRadius) public void setR2(double r2) { + if (this.r2 == r2) + return; this.r2 = r2; firePropertyChanged(CSG.URIs.HasMajorRadius); } @@ -43,6 +58,8 @@ public class BarrelNode extends CSGnode { @RelatedSetValue(CSG.URIs.HasHeight) @SetPropertyValue(CSG.URIs.HasHeight) public void setH(double h) { + if (this.h == h) + return; this.h = h; firePropertyChanged(CSG.URIs.HasHeight); }