Hide document when loading a ToolBit.

This commit is contained in:
Markus Lampert
2020-12-17 19:55:59 -08:00
parent 7049c09448
commit 3da82fa6af

View File

@@ -252,7 +252,7 @@ class ToolBit(object):
p = findShape(p)
if not path and p != obj.BitShape:
obj.BitShape = p
doc = FreeCAD.open(p)
doc = FreeCAD.openDocument(p, True)
obj.ShapeName = doc.Name
docOpened = True
return (doc, docOpened)