From f82eef7533752a83f2aae3c37477b83c1229c628 Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Tue, 2 Jul 2024 01:06:29 +0200 Subject: [PATCH] Use the _finish function in case of cancel as well --- src/Mod/BIM/bimcommands/BimBox.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Mod/BIM/bimcommands/BimBox.py b/src/Mod/BIM/bimcommands/BimBox.py index 2f7914d4b8..82968934b6 100644 --- a/src/Mod/BIM/bimcommands/BimBox.py +++ b/src/Mod/BIM/bimcommands/BimBox.py @@ -112,11 +112,7 @@ class BIM_Box: def PointCallback(self, point, snapinfo): if not point: # cancelled - if hasattr(FreeCAD, "DraftWorkingPlane"): - FreeCAD.DraftWorkingPlane.restore() - FreeCADGui.Snapper.setGrid() - for c in self.cubetracker: - c.off() + self._finish() return if len(self.points) == 0: