diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2021-11-18 12:45:35 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2021-12-13 11:38:17 +0300 |
commit | e549d6c1bd2ded2f0d33db0489c68a84a822fd34 (patch) | |
tree | f88ed9a1a983a0821546cae64c0f62c5a8452165 /release/scripts/startup/bl_ui | |
parent | bea5a9997d5d8cc8d720b9f35c11579c4b096784 (diff) |
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
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 4 |
1 files changed, 3 insertions, 1 deletions
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'} |