X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fproperty%2FDoubleArrayPropertyManipulator.java;h=e0148147b83bf608f878106ba031455f964f4aa6;hb=5fcc8f4cf9d511d50cdf47b0f8152ea0f287199a;hp=bfaa4a506a3c833a605b330eb203b0d2a3c5e04e;hpb=01441002a94a1f4ad2b078d63cb719ce617bd6cf;p=simantics%2F3d.git diff --git a/org.simantics.g3d/src/org/simantics/g3d/property/DoubleArrayPropertyManipulator.java b/org.simantics.g3d/src/org/simantics/g3d/property/DoubleArrayPropertyManipulator.java index bfaa4a50..e0148147 100644 --- a/org.simantics.g3d/src/org/simantics/g3d/property/DoubleArrayPropertyManipulator.java +++ b/org.simantics.g3d/src/org/simantics/g3d/property/DoubleArrayPropertyManipulator.java @@ -13,6 +13,8 @@ package org.simantics.g3d.property; import java.util.Arrays; +import org.simantics.g3d.math.MathTools; + public class DoubleArrayPropertyManipulator implements PropertyManipulator { ValueProvider provider; @@ -51,7 +53,8 @@ public class DoubleArrayPropertyManipulator implements PropertyManipulator { } try { double[] val = getValue(); - return Arrays.toString(val); + if (val == null) return null; + return Double.toString(MathTools.round(val[i], 10)); } catch (Exception e) { return null; }