Assembly: Deactivate other tools when insert part is active. Fixes #12551
This commit is contained in:
committed by
Yorik van Havre
parent
b608324448
commit
a4fc08087a
@@ -55,6 +55,9 @@ class CommandCreateAssembly:
|
||||
}
|
||||
|
||||
def IsActive(self):
|
||||
if Gui.Control.activeDialog():
|
||||
return False
|
||||
|
||||
if Preferences.preferences().GetBool("EnforceOneAssemblyRule", True):
|
||||
activeAssembly = UtilsAssembly.activeAssembly()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user