[Bf-blender-cvs] [7d5fa516666] blender-v3.0-release: Fix T93169: Weightpaint falloff popover drawn twice

Philipp Oeser noreply at git.blender.org
Tue Jan 11 09:32:58 CET 2022


Commit: 7d5fa516666714e98f65d37079cacc9b4e4beaa5
Author: Philipp Oeser
Date:   Thu Nov 18 10:45:35 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rB7d5fa516666714e98f65d37079cacc9b4e4beaa5

Fix T93169: Weightpaint falloff popover drawn twice

This came with {rBf8a0e102cf5e}.

The panel was meant specifically for the gradient tool, but since it was
given the ".weighpaint" context, it would also draw as part of generic
header toolsettings drawing.

Now remove this context on purpose and only draw this specifically from
the gradient tools ToolDef.

Maniphest Tasks: T93169

Differential Revision: https://developer.blender.org/D13268

===================================================================

M	release/scripts/startup/bl_ui/space_view3d_toolbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index acc3d933b85..01850676519 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -689,7 +689,9 @@ class VIEW3D_PT_tools_brush_stroke_smooth_stroke(Panel, View3DPaintPanel, Smooth
 
 
 class VIEW3D_PT_tools_weight_gradient(Panel, View3DPaintPanel):
-    bl_context = ".weightpaint" # dot on purpose (access from topbar)
+    # dont give context on purpose to not show this in the generic header toolsettings
+    # this is added only in the gradient tool's ToolDef
+    #bl_context = ".weightpaint" # dot on purpose (access from topbar)
     bl_label = "Falloff"
     bl_options = {'DEFAULT_CLOSED'}



More information about the Bf-blender-cvs mailing list