Arch: Fixed trackers ending too soon - fixes #13915

This commit is contained in:
Yorik van Havre
2024-05-15 13:40:15 +02:00
committed by Yorik van Havre
parent f4fa7619c0
commit 9eec6020f7
3 changed files with 12 additions and 3 deletions

View File

@@ -24,6 +24,7 @@ import FreeCAD,Draft,ArchComponent,DraftVecUtils,ArchCommands
from FreeCAD import Vector
import ArchProfile
from draftutils import params
from draftutils import gui_utils
if FreeCAD.GuiUp:
import FreeCADGui
@@ -342,7 +343,7 @@ class _CommandStructure:
self.bpoint = point
FreeCADGui.Snapper.getPoint(last=point,callback=self.getPoint,movecallback=self.update,extradlg=[self.taskbox(),self.precast.form,self.dents.form],title=translate("Arch","Next point")+":",mode="line")
return
self.tracker.finalize()
self.tracker.off()
FreeCAD.activeDraftCommand = None
FreeCADGui.Snapper.off()
horiz = True # determines the type of rotation to apply to the final object
@@ -410,6 +411,8 @@ class _CommandStructure:
FreeCADGui.doCommand("Draft.autogroup(s)")
FreeCAD.ActiveDocument.commitTransaction()
FreeCAD.ActiveDocument.recompute()
gui_utils.end_all_events()
self.tracker.finalize()
if self.continueCmd:
self.Activated()