From 3a8d9a273858c2e86f5b63c69db6df537d82950f Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Tue, 22 Jun 2021 11:54:48 +0200 Subject: [PATCH] Draft: Small cleanup of Utilities menu and utility toolbar Removed from the Utilities menu because they already occur in the Modification menu: Draft_FlipDimension Draft_Edit Draft_Slope Removed from the Utilities menu because calling the command from there instead of from the Draft Tray does not make sense: Draft_AutoGroup Removed from the "Draft utility tools" toolbar because the command is very rarely used: Draft_Heal --- src/Mod/Draft/draftutils/init_tools.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Mod/Draft/draftutils/init_tools.py b/src/Mod/Draft/draftutils/init_tools.py index 6e24722e0e..2cbee4bb02 100644 --- a/src/Mod/Draft/draftutils/init_tools.py +++ b/src/Mod/Draft/draftutils/init_tools.py @@ -66,8 +66,7 @@ def get_draft_small_commands(): "Draft_ToggleDisplayMode", "Draft_AddToGroup", "Draft_SelectGroup", - "Draft_AddConstruction", - "Draft_Heal"] + "Draft_AddConstruction"] def get_draft_modification_commands(): @@ -97,8 +96,7 @@ def get_draft_context_commands(): return ["Draft_ApplyStyle", "Draft_ToggleDisplayMode", "Draft_AddToGroup", "Draft_SelectGroup", "Draft_SelectPlane", "Draft_ShowSnapBar", - "Draft_ToggleGrid", "Draft_AutoGroup", - "Draft_SetStyle"] + "Draft_ToggleGrid", "Draft_SetStyle"] def get_draft_line_commands(): @@ -109,10 +107,11 @@ def get_draft_line_commands(): def get_draft_utility_commands(): """Return the utility commands list.""" - return ["Draft_Layer", "Draft_Heal", "Draft_FlipDimension", + return ["Draft_Layer", + "Draft_Heal", "Draft_ToggleConstructionMode", - "Draft_ToggleContinueMode", "Draft_Edit", - "Draft_Slope", "Draft_WorkingPlaneProxy", + "Draft_ToggleContinueMode", + "Draft_WorkingPlaneProxy", "Draft_AddConstruction"]