Skip to content

Commit

Permalink
Hide ToolBit by default if managed by a ToolController
Browse files Browse the repository at this point in the history
  • Loading branch information
mlampert committed Nov 29, 2019
1 parent 308c1f9 commit 4c473a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mod/Path/PathScripts/PathToolControllerGui.py
Expand Up @@ -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


Expand Down

0 comments on commit 4c473a6

Please sign in to comment.