BIM: Fixed IsActive of BIM commands (#14384)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user