Hide ToolBit by default if managed by a ToolController

This commit is contained in:
Markus Lampert
2019-10-28 21:37:24 -07:00
parent 1395749dc2
commit c8afefa05d

View File

@@ -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