[Bf-blender-cvs] [b3597f310d0] blender-v3.0-release: Fix T92469: Transform tools inaccessible in weight-paint + pose mode
Campbell Barton
noreply at git.blender.org
Tue Nov 9 05:47:47 CET 2021
Commit: b3597f310d0e34b021b83fe6c94bdf258ced24ed
Author: Campbell Barton
Date: Tue Nov 9 15:43:34 2021 +1100
Branches: blender-v3.0-release
https://developer.blender.org/rBb3597f310d0e34b021b83fe6c94bdf258ced24ed
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
===================================================================
M release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
===================================================================
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 ()
),
More information about the Bf-blender-cvs
mailing list