Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 4d62d7072cb..4bd3d5cc3f2 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -694,9 +694,15 @@ class VIEW3D_PT_tools_weight_gradient(Panel, View3DPaintPanel):
#bl_context = ".weightpaint" # dot on purpose (access from topbar)
bl_label = "Falloff"
bl_options = {'DEFAULT_CLOSED'}
+ # also dont draw as an extra panel in the sidebar (already included in the Brush settings)
+ bl_space_type = 'TOPBAR'
+ bl_region_type = 'HEADER'
@classmethod
def poll(cls, context):
+ # since we dont give context above, check mode here (to not show in other modes like sculpt)
+ if context.mode != 'PAINT_WEIGHT':
+ return False
settings = context.tool_settings.weight_paint
if settings is None:
return False