Assembly: Joint task: Fix sel gate not being cleared if doc closed
(cherry picked from commit 8b1dce3437)
This commit is contained in:
committed by
Adrián Insaurralde Avalos
parent
9c24507531
commit
69f6f9e4b0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user