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

@@ -42,6 +42,10 @@ class BIM_Compound:
),
}
def IsActive(self):
v = hasattr(FreeCADGui.getMainWindow().getActiveWindow(), "getSceneGraph")
return v
def Activated(self):
import PartGui
FreeCADGui.runCommand("Part_Compound")