Use the _finish function in case of cancel as well

This commit is contained in:
Roy-043
2024-07-02 01:06:29 +02:00
committed by Yorik van Havre
parent 5e95bb788a
commit f82eef7533

View File

@@ -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: