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=a9971605af500f1433678bc20701f4b232c76734;hpb=939157c2981148dbd372ee1b3c92ed6cf13d8b4e;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 a9971605..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; @@ -52,7 +54,7 @@ public class DoubleArrayPropertyManipulator implements PropertyManipulator { try { double[] val = getValue(); if (val == null) return null; - return Arrays.toString(val); + return Double.toString(MathTools.round(val[i], 10)); } catch (Exception e) { return null; }