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
Notes: blender-bot 2023-02-14 05:28:01 +01:00
Referenced by issue #62483, Cursor "jumps" after basic actions, due to xorg's TransformationMatrix option
Referenced by issue #62488, Can delete collection from indirect linked library
1 changed files with 5 additions and 2 deletions

View File

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