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