Fix T92469: Transform tools inaccessible in weight-paint + pose mode

Expose transform tools when in weight paint mode with pose-mode enabled,
displaying transform tools in the toolbar, as is already done in
object & pose mode.

These are only shown when weight-paint + pose mode are active at once.

This allows single key-strokes to activate tools, needed when
tool-access is set as the default action for G/R/S key bindings.

Reviewed By: JulienKaspar

Ref D13028
This commit is contained in:
Campbell Barton 2021-11-09 15:43:34 +11:00
parent afc60f9957
commit b3597f310d
Notes: blender-bot 2023-05-03 10:14:48 +02:00
Referenced by issue #92469, G/R/S shortcuts gone for Weight Paint Mode when Tools used in the Keymap
1 changed files with 5 additions and 1 deletions

View File

@ -3001,7 +3001,11 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel):
),
None,
lambda context: (
(_defs_view3d_generic.cursor,)
(
_defs_view3d_generic.cursor,
None,
*VIEW3D_PT_tools_active._tools_transform,
)
if context is None or context.pose_object
else ()
),