forked from bartvdbraak/blender
Add poll function for overlay panel. Thanks to Thomas Dinges for the report!
This commit is contained in:
parent
e192f5b198
commit
61cceb3700
@ -743,6 +743,17 @@ class VIEW3D_PT_tools_brush_overlay(Panel, View3DPaintPanel):
|
||||
bl_label = "Overlay"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
settings = cls.paint_settings(context)
|
||||
return (settings and
|
||||
settings.brush and
|
||||
(context.sculpt_object or
|
||||
context.vertex_paint_object or
|
||||
context.weight_paint_object or
|
||||
context.image_paint_object))
|
||||
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user