[Bf-blender-cvs] [e549d6c1bd2] master: Fix T93169: Weightpaint falloff popover drawn twice
Philipp Oeser
noreply at git.blender.org
Mon Dec 13 09:58:43 CET 2021
Commit: e549d6c1bd2ded2f0d33db0489c68a84a822fd34
Author: Philipp Oeser
Date: Thu Nov 18 10:45:35 2021 +0100
Branches: master
https://developer.blender.org/rBe549d6c1bd2ded2f0d33db0489c68a84a822fd34
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