X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fproperty%2FVectorPropertyManipulator.java;fp=org.simantics.g3d%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fproperty%2FVectorPropertyManipulator.java;h=47587fbca2ffa44e2fd2963ce8d222695efac09a;hb=5fcc8f4cf9d511d50cdf47b0f8152ea0f287199a;hp=e0a8021925ff87635da054ced8170e9c71926a13;hpb=939157c2981148dbd372ee1b3c92ed6cf13d8b4e;p=simantics%2F3d.git diff --git a/org.simantics.g3d/src/org/simantics/g3d/property/VectorPropertyManipulator.java b/org.simantics.g3d/src/org/simantics/g3d/property/VectorPropertyManipulator.java index e0a80219..47587fbc 100644 --- a/org.simantics.g3d/src/org/simantics/g3d/property/VectorPropertyManipulator.java +++ b/org.simantics.g3d/src/org/simantics/g3d/property/VectorPropertyManipulator.java @@ -13,6 +13,8 @@ package org.simantics.g3d.property; import javax.vecmath.Vector3d; +import org.simantics.g3d.math.MathTools; + public class VectorPropertyManipulator implements PropertyManipulator { ValueProvider provider; @@ -49,11 +51,11 @@ public class VectorPropertyManipulator implements PropertyManipulator { if (v == null) return null; if (i == 0) - return Double.toString(v.x); + return Double.toString(MathTools.round(v.x, 10)); if (i == 1) - return Double.toString(v.y); + return Double.toString(MathTools.round(v.y, 10)); if (i == 2) - return Double.toString(v.z); + return Double.toString(MathTools.round(v.z, 10)); return null; } catch (Exception e) { return null;