From 1a1927b8d5928fb6c7933301affddc8b7180214f Mon Sep 17 00:00:00 2001 From: Daniel Falck Date: Thu, 25 Jun 2015 19:24:34 -0700 Subject: [PATCH] added units to Draft Point Properties --- src/Mod/Draft/Draft.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index 53d0ce949..8e3506e64 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -4990,15 +4990,15 @@ class _Point(_DraftObject): "The Draft Point object" def __init__(self, obj,x=0,y=0,z=0): _DraftObject.__init__(self,obj,"Point") - obj.addProperty("App::PropertyFloat","X","Draft","Location").X = x - obj.addProperty("App::PropertyFloat","Y","Draft","Location").Y = y - obj.addProperty("App::PropertyFloat","Z","Draft","Location").Z = z + obj.addProperty("App::PropertyDistance","X","Draft","Location").X = x + obj.addProperty("App::PropertyDistance","Y","Draft","Location").Y = y + obj.addProperty("App::PropertyDistance","Z","Draft","Location").Z = z mode = 2 obj.setEditorMode('Placement',mode) def execute(self, obj): import Part - shape = Part.Vertex(Vector(obj.X,obj.Y,obj.Z)) + shape = Part.Vertex(Vector(obj.X.Value,obj.Y.Value,obj.Z.Value)) obj.Shape = shape class _ViewProviderPoint(_ViewProviderDraft):