Draft: Fixed units mismatch when moving Draft_Point objects

obj.X.Value instead of float(obj.X)
This commit is contained in:
Roy-043
2021-07-13 16:08:54 +02:00
committed by Bernd Hahnebach
parent f47c33bd65
commit ad39e5fbdd

View File

@@ -83,9 +83,9 @@ def move(objectslist, vector, copy=False):
newobj = make_copy.make_copy(obj)
else:
newobj = obj
newobj.X = float(obj.X) + real_vector.x
newobj.Y = float(obj.Y) + real_vector.y
newobj.Z = float(obj.Z) + real_vector.z
newobj.X = obj.X.Value + real_vector.x
newobj.Y = obj.Y.Value + real_vector.y
newobj.Z = obj.Z.Value + real_vector.z
elif obj.isDerivedFrom("App::DocumentObjectGroup"):
pass