fixed bug #556 - Premature loading of modules
The Draft and Arch modules now load heavy modules such as Part or Sketch only when they use them, not anymore at Init time.
This commit is contained in:
@@ -56,7 +56,7 @@ class _CommandBuilding:
|
||||
if Draft.getType(sel[0]) in ["Cell","Site","Floor"]:
|
||||
FreeCAD.ActiveDocument.openTransaction("Type conversion")
|
||||
nobj = makeBuilding()
|
||||
Commands.copyProperties(sel[0],nobj)
|
||||
ArchCommands.copyProperties(sel[0],nobj)
|
||||
FreeCAD.ActiveDocument.removeObject(sel[0].Name)
|
||||
FreeCAD.ActiveDocument.commitTransaction()
|
||||
ok = True
|
||||
|
||||
Reference in New Issue
Block a user