X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fproperty%2FDoubleArrayPropertyManipulator2.java;h=9275bfead2e9dbdfc63bf1dc196472eeb1fbaf1f;hb=refs%2Fchanges%2F88%2F3688%2F2;hp=6b7a2e115dbe833632888cc85024a4a2edd22ee0;hpb=faa2c9d309cd59039b49cb4a2f6b21b21546b951;p=simantics%2F3d.git diff --git a/org.simantics.g3d/src/org/simantics/g3d/property/DoubleArrayPropertyManipulator2.java b/org.simantics.g3d/src/org/simantics/g3d/property/DoubleArrayPropertyManipulator2.java index 6b7a2e11..9275bfea 100644 --- a/org.simantics.g3d/src/org/simantics/g3d/property/DoubleArrayPropertyManipulator2.java +++ b/org.simantics.g3d/src/org/simantics/g3d/property/DoubleArrayPropertyManipulator2.java @@ -11,6 +11,8 @@ *******************************************************************************/ package org.simantics.g3d.property; +import org.simantics.g3d.math.MathTools; + public class DoubleArrayPropertyManipulator2 implements PropertyManipulator { ValueProvider provider; @@ -57,7 +59,7 @@ public class DoubleArrayPropertyManipulator2 implements PropertyManipulator { return "New"; if (val.length < i) return null; - return Double.toString(val[i]); + return Double.toString(MathTools.round(val[i], 10)); } catch (Exception e) { return null; }