Removed multiple import of FreeCADGui in rebuildArchShape.

This commit is contained in:
Amritpal Singh
2020-11-24 15:16:43 +05:30
committed by GitHub
parent be37e43376
commit 7687eef03c

View File

@@ -1204,7 +1204,6 @@ def rebuildArchShape(objects=None):
if objects is None) Arch objects, and tries to rebuild a valid solid from them."""
import FreeCAD,Part
if not objects and FreeCAD.GuiUp:
import FreeCADGui
objects = FreeCADGui.Selection.getSelection()
if not isinstance(objects,list):
objects = [objects]