Tools: Only show cursor tool in wpaint mode when a pose object exists

This commit is contained in:
Campbell Barton 2019-03-12 10:51:04 +11:00
parent bf1a3fee7c
commit e6eb7b9cce

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