From e549d6c1bd2ded2f0d33db0489c68a84a822fd34 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Thu, 18 Nov 2021 10:45:35 +0100 Subject: [PATCH] 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 --- release/scripts/startup/bl_ui/space_view3d_toolbar.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'}