diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-12 02:51:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-12 02:54:39 +0300 |
commit | e6eb7b9ccee134f0f94cae6f817a29adf029a8d4 (patch) | |
tree | 95e00e6c304a4ddd443d4b907cd2572fa6d7db40 /release/scripts/startup | |
parent | bf1a3fee7c273f53c54269aa0507680acd79b511 (diff) |
Tools: Only show cursor tool in wpaint mode when a pose object exists
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index a7f555288ad..cc17f6cfbe8 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -1748,8 +1748,11 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel): _defs_weight_paint.sample_weight_group, ), None, - # TODO, check for mixed pose mode - _defs_view3d_generic.cursor, + lambda context: ( + (_defs_view3d_generic.cursor,) + if context.pose_object + else () + ), None, lambda context: ( VIEW3D_PT_tools_active._tools_select |