Assembly: Deactivate other tools when insert part is active. Fixes #12551

This commit is contained in:
PaddleStroke
2024-02-26 09:14:19 +01:00
committed by Yorik van Havre
parent b608324448
commit a4fc08087a
2 changed files with 13 additions and 2 deletions

View File

@@ -55,6 +55,9 @@ class CommandCreateAssembly:
}
def IsActive(self):
if Gui.Control.activeDialog():
return False
if Preferences.preferences().GetBool("EnforceOneAssemblyRule", True):
activeAssembly = UtilsAssembly.activeAssembly()