FEM: Add command only when GUI is up
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
committed by
Yorik van Havre
parent
3f7228ca84
commit
c9a1324c26
@@ -265,4 +265,5 @@ class _MechanicalMaterialTaskPanel:
|
||||
self.add_mat_dir(custom_mat_dir, ":/icons/user.svg")
|
||||
|
||||
|
||||
FreeCADGui.addCommand('Fem_MechanicalMaterial', _CommandMechanicalMaterial())
|
||||
if FreeCAD.GuiUp:
|
||||
FreeCADGui.addCommand('Fem_MechanicalMaterial', _CommandMechanicalMaterial())
|
||||
|
||||
Reference in New Issue
Block a user