Draft: Fix regression generated in commit d3595bf

This commit is contained in:
marioalexis
2021-07-16 22:10:39 -03:00
parent e172c07534
commit 1b7a703519

View File

@@ -180,6 +180,7 @@ class DraftTool:
self.ui.sourceCmd = None
if self.planetrack:
self.planetrack.finalize()
App.DraftWorkingPlane.restore()
if hasattr(Gui, "Snapper"):
Gui.Snapper.off()
if self.call:
@@ -302,4 +303,9 @@ class Modifier(DraftTool):
super(Modifier, self).__init__()
self.copymode = False
def Activated(self, name="None", noplanesetup=False, is_subtool=False):
super(Modifier, self).Activated(name, noplanesetup, is_subtool)
# call DraftWorkingPlane.save to sync with
# DraftWorkingPlane.restore called in finish method
App.DraftWorkingPlane.save()
## @}