FEM: material task panel, fix unuseable Gui if material editor was canceled and material accepted
This commit is contained in:
@@ -204,6 +204,10 @@ class _TaskPanel:
|
||||
# leave task panel ***************************************************************************
|
||||
def accept(self):
|
||||
# print(self.material)
|
||||
if self.material == {}: # happens if material editor was canceled
|
||||
FreeCAD.Console.PrintError("Empty material dictionary, nothing was changed.\n")
|
||||
self.recompute_and_set_back_all()
|
||||
return True
|
||||
if self.selectionWidget.has_equal_references_shape_types():
|
||||
self.do_not_set_thermal_zeros()
|
||||
from materialtools.cardutils import check_mat_units as checkunits
|
||||
|
||||
Reference in New Issue
Block a user