BIM: Fixed IsActive of BIM commands (#14384)

This commit is contained in:
Yorik van Havre
2024-05-30 22:33:43 +02:00
committed by GitHub
parent ed36928ff9
commit 7a8a25a5b3
16 changed files with 62 additions and 3 deletions

View File

@@ -197,7 +197,8 @@ class CommandStructuresFromSelection:
'ToolTip': QT_TRANSLATE_NOOP("Arch_StructuresFromSelection", "Create multiple Arch Structures from a selected base, using each selected edge as an extrusion path")}
def IsActive(self):
return not FreeCAD.ActiveDocument is None
v = hasattr(FreeCADGui.getMainWindow().getActiveWindow(), "getSceneGraph")
return v
def Activated(self):
selex = FreeCADGui.Selection.getSelectionEx()