Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-12 02:51:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-12 02:54:39 +0300
commite6eb7b9ccee134f0f94cae6f817a29adf029a8d4 (patch)
tree95e00e6c304a4ddd443d4b907cd2572fa6d7db40
parentbf1a3fee7c273f53c54269aa0507680acd79b511 (diff)
Tools: Only show cursor tool in wpaint mode when a pose object exists
-rw-r--r--release/scripts/startup/bl_ui/space_toolsystem_toolbar.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index a7f555288ad..cc17f6cfbe8 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -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