X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d.csg%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fcsg%2Fscenegraph2%2FBoxNode.java;h=ea950eeb80ca68181ee87099d5732d41b45098e0;hb=9f84331c9967c88e0e5550ce91f2b7e364a5cb6d;hp=b15813719b1aac6dbb89dcf8b7f00779f11411f4;hpb=87b3241ec277ba3d8e414b26186a032c9cdcaeed;p=simantics%2F3d.git diff --git a/org.simantics.g3d.csg/src/org/simantics/g3d/csg/scenegraph2/BoxNode.java b/org.simantics.g3d.csg/src/org/simantics/g3d/csg/scenegraph2/BoxNode.java index b1581371..ea950eeb 100644 --- a/org.simantics.g3d.csg/src/org/simantics/g3d/csg/scenegraph2/BoxNode.java +++ b/org.simantics.g3d.csg/src/org/simantics/g3d/csg/scenegraph2/BoxNode.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.TopoDS_Shape; @@ -23,6 +34,8 @@ public class BoxNode extends CSGnode { @RelatedSetValue(CSG.URIs.HasXAxisSize) @SetPropertyValue(CSG.URIs.HasXAxisSize) public void setSX(double d) { + if (this.sx == d) + return; this.sx = d; firePropertyChanged(CSG.URIs.HasXAxisSize); } @@ -30,6 +43,8 @@ public class BoxNode extends CSGnode { @RelatedSetValue(CSG.URIs.HasYAxisSize) @SetPropertyValue(CSG.URIs.HasYAxisSize) public void setSY(double d) { + if (this.sy == d) + return; this.sy = d; firePropertyChanged(CSG.URIs.HasYAxisSize); } @@ -37,6 +52,8 @@ public class BoxNode extends CSGnode { @RelatedSetValue(CSG.URIs.HasZAxisSize) @SetPropertyValue(CSG.URIs.HasZAxisSize) public void setSZ(double d) { + if (this.sz == d) + return; this.sz = d; firePropertyChanged(CSG.URIs.HasZAxisSize); }