From c8afefa05d01c44a7e188e8098aa2c8ec35f7b6e Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Mon, 28 Oct 2019 21:37:24 -0700 Subject: [PATCH] Hide ToolBit by default if managed by a ToolController --- src/Mod/Path/PathScripts/PathToolControllerGui.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Path/PathScripts/PathToolControllerGui.py b/src/Mod/Path/PathScripts/PathToolControllerGui.py index 81952c8511..f0f088e445 100644 --- a/src/Mod/Path/PathScripts/PathToolControllerGui.py +++ b/src/Mod/Path/PathScripts/PathToolControllerGui.py @@ -127,6 +127,10 @@ def Create(name = 'Default Tool', tool=None, toolNumber=1): obj = PathScripts.PathToolController.Create(name, tool, toolNumber) ViewProvider(obj.ViewObject) + if not obj.Proxy.usesLegacyTool(obj): + # ToolBits are visible by default, which is typically not what the user wants + if tool and tool.ViewObject and tool.ViewObject.Visibility: + tool.ViewObject.Visibility = False return obj