Assembly: Joint task: Fix sel gate not being cleared if doc closed
This commit is contained in:
committed by
Max Wilfinger
parent
56884b4c41
commit
8b1dce3437
@@ -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