Assembly: Joint task: Fix sel gate not being cleared if doc closed

This commit is contained in:
PaddleStroke
2025-11-18 21:35:02 +01:00
committed by Max Wilfinger
parent 56884b4c41
commit 8b1dce3437

View File

@@ -1555,6 +1555,14 @@ class TaskAssemblyCreateJoint(QtCore.QObject):
def autoClosedOnTransactionChange(self):
self.reject()
def autoClosedOnDeletedDocument(self):
global activeTask
activeTask = None
Gui.Selection.removeSelectionGate()
Gui.Selection.removeObserver(self)
Gui.Selection.setSelectionStyle(Gui.Selection.SelectionStyle.NormalSelection)
App.closeActiveTransaction(True)
def deactivate(self):
global activeTask
activeTask = None