Fem: Do not update mesh if process ends with errors

This commit is contained in:
marioalexis
2025-02-14 18:12:40 -03:00
parent 3eec651715
commit 99d7e07bea

View File

@@ -107,8 +107,10 @@ class _BaseMeshTaskPanel(base_femtaskpanel._BaseTaskPanel, ABC):
if status == QtCore.QProcess.ExitStatus.NormalExit:
if code != 0:
self.write_log(
"Meshing finished with errors\n", QtGui.QColor(getOutputWinColor("Error"))
"Process finished with errors. Mesh not updated\n",
QtGui.QColor(getOutputWinColor("Error")),
)
return
self.tool.update_properties()
self.write_log("Process finished\n", QtGui.QColor(getOutputWinColor("Text")))
else: