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

(cherry picked from commit 8b1dce3437)
This commit is contained in:
PaddleStroke
2025-11-24 23:06:43 -03:00
committed by Adrián Insaurralde Avalos
parent 9c24507531
commit 69f6f9e4b0
+8
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