[Bf-blender-cvs] [73aa6b8185e] retopo_transform: snap menu says "Tool" when retopo tool is active
jon denning
noreply at git.blender.org
Tue Jul 26 06:32:13 CEST 2022
Commit: 73aa6b8185ea3ffe9a7ec6c801286bacb1540cac
Author: jon denning
Date: Fri Jul 22 11:39:19 2022 -0400
Branches: retopo_transform
https://developer.blender.org/rB73aa6b8185ea3ffe9a7ec6c801286bacb1540cac
snap menu says "Tool" when retopo tool is active
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index ed655fb91de..b1956ebac53 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -619,7 +619,11 @@ class VIEW3D_HT_header(Header):
if show_snap:
snap_items = bpy.types.ToolSettings.bl_rna.properties["snap_elements"].enum_items
snap_elements = tool_settings.snap_elements
- if len(snap_elements) == 1:
+ active_tool = context.workspace.tools.from_space_view3d_mode(context.mode, create=False)
+ if active_tool.idname.startswith('retopology'):
+ text = "Tool"
+ icon = 'NONE'
+ elif len(snap_elements) == 1:
text = ""
for elem in snap_elements:
icon = snap_items[elem].icon
More information about the Bf-blender-cvs
mailing list