Geometry: Make meshing method to undo command.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-12-20 14:36:41 +01:00
1 parent eb65ce4c1b
commit 655982e908
3 files changed
+47 -5

No files matched your search

+12
View File
@@ -221,3 +221,15 @@ class GeometryReachTableModel(PamhyrTableModel):
self.layoutAboutToBeChanged.emit()
self.layoutChanged.emit()
def meshing(self, mesher, step):
self.layoutAboutToBeChanged.emit()
self._undo.push(
MeshingCommand(
self._data, mesher, step
)
)
self.layoutAboutToBeChanged.emit()
self.layoutChanged.emit()