Draft: Edit support for Part Sphere

.
This commit is contained in:
carlopav
2020-05-24 12:28:38 +02:00
committed by Yorik van Havre
parent 4507a5a21b
commit 8926651c0e
2 changed files with 27 additions and 2 deletions

View File

@@ -983,6 +983,9 @@ class Edit(gui_base_original.Modifier):
elif objectType == "Part" and obj.TypeId == "Part::Cone":
eps = edit_part.getPartConePts(obj)
elif objectType == "Part" and obj.TypeId == "Part::Sphere":
eps = edit_part.getPartSpherePts(obj)
elif objectType == "Sketch":
eps = edit_sketcher.getSketchPts(obj)
@@ -1072,6 +1075,9 @@ class Edit(gui_base_original.Modifier):
elif objectType == "Part" and obj.TypeId == "Part::Cone":
edit_part.updatePartCone(obj, nodeIndex, v)
elif objectType == "Part" and obj.TypeId == "Part::Sphere":
edit_part.updatePartSphere(obj, nodeIndex, v)
obj.recompute()