diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-11-09 07:43:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-11-09 07:43:34 +0300 |
commit | b3597f310d0e34b021b83fe6c94bdf258ced24ed (patch) | |
tree | c100ebc3a6bc3d7d0fc74da2863596a71cf7599f | |
parent | afc60f995701ec6d41a05823b248db624ea1fcc6 (diff) |
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
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index c07487079de..2253dfa5f5d 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -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 () ), |