diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-11-13 09:27:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-11-13 09:27:39 +0300 |
commit | f00ebd4dba25f1ddc728a1431a1f81dd03c17457 (patch) | |
tree | 4a877ceed9af6b2ab3bc3f6e5186526d1f348884 /release/scripts/startup/bl_ui | |
parent | ccf8df66fea3650b3d43ed079f9eec4cf35e99f6 (diff) |
UI: make add object tool experimental
Some changes here are planned which need feedback from users before
declaring this ready for the next release.
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 18 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref.py | 1 |
2 files changed, 14 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index 9e86ea19432..ca5e6404159 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -2570,9 +2570,12 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel): ], 'OBJECT': [ *_tools_default, - - None, - _tools_view3d_add, + # Currently experimental. + # None, _tools_view3d_add, + lambda context: ( + (None, VIEW3D_PT_tools_active._tools_view3d_add) + if (context is None or context.preferences.experimental.use_object_add_tool) else () + ), ], 'POSE': [ *_tools_default, @@ -2600,8 +2603,13 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel): ], 'EDIT_MESH': [ *_tools_default, - None, - _tools_view3d_add, + + # Currently experimental. + # None, _tools_view3d_add, + lambda context: ( + (None, VIEW3D_PT_tools_active._tools_view3d_add) + if (context is None or context.preferences.experimental.use_object_add_tool) else () + ), None, ( _defs_edit_mesh.extrude, diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index 56a9491a5e7..8d73b0a0b93 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -2188,6 +2188,7 @@ class USERPREF_PT_experimental_new_features(ExperimentalPanel, Panel): ({"property": "use_sculpt_vertex_colors"}, "T71947"), ({"property": "use_switch_object_operator"}, "T80402"), ({"property": "use_sculpt_tools_tilt"}, "T00000"), + ({"property": "use_object_add_tool"}, "T57210"), ), ) |