Cleanup: correct misleading classmethod arg
This commit is contained in:
@@ -313,7 +313,7 @@ class RENDER_PT_output_views(RenderOutputButtonsPanel, Panel):
|
||||
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}
|
||||
|
||||
@classmethod
|
||||
def poll(self, context):
|
||||
def poll(cls, context):
|
||||
rd = context.scene.render
|
||||
return rd.use_multiview
|
||||
|
||||
|
||||
@@ -963,7 +963,7 @@ class IMAGE_PT_paint_color(Panel, ImagePaintPanel):
|
||||
bl_label = "Color Picker"
|
||||
|
||||
@classmethod
|
||||
def poll(self, context):
|
||||
def poll(cls, context):
|
||||
settings = context.tool_settings.image_paint
|
||||
brush = settings.brush
|
||||
capabilities = brush.image_paint_capabilities
|
||||
@@ -987,7 +987,7 @@ class IMAGE_PT_paint_swatches(Panel, ImagePaintPanel):
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
def poll(self, context):
|
||||
def poll(cls, context):
|
||||
settings = context.tool_settings.image_paint
|
||||
brush = settings.brush
|
||||
capabilities = brush.image_paint_capabilities
|
||||
@@ -1010,7 +1010,7 @@ class IMAGE_PT_paint_gradient(Panel, ImagePaintPanel):
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
def poll(self, context):
|
||||
def poll(cls, context):
|
||||
settings = context.tool_settings.image_paint
|
||||
brush = settings.brush
|
||||
capabilities = brush.image_paint_capabilities
|
||||
@@ -1041,7 +1041,7 @@ class IMAGE_PT_paint_clone(Panel, ImagePaintPanel):
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
def poll(self, context):
|
||||
def poll(cls, context):
|
||||
settings = context.tool_settings.image_paint
|
||||
brush = settings.brush
|
||||
|
||||
@@ -1068,7 +1068,7 @@ class IMAGE_PT_paint_options(Panel, ImagePaintPanel):
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
def poll(self, context):
|
||||
def poll(cls, context):
|
||||
settings = context.tool_settings.image_paint
|
||||
brush = settings.brush
|
||||
capabilities = brush.image_paint_capabilities
|
||||
|
||||
@@ -389,8 +389,8 @@ class VIEW3D_PT_tools_brush_color(Panel, View3DPaintPanel):
|
||||
bl_label = "Color Picker"
|
||||
|
||||
@classmethod
|
||||
def poll(self, context):
|
||||
settings = self.paint_settings(context)
|
||||
def poll(cls, context):
|
||||
settings = cls.paint_settings(context)
|
||||
brush = settings.brush
|
||||
if context.image_paint_object:
|
||||
capabilities = brush.image_paint_capabilities
|
||||
@@ -417,8 +417,8 @@ class VIEW3D_PT_tools_brush_swatches(Panel, View3DPaintPanel):
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
def poll(self, context):
|
||||
settings = self.paint_settings(context)
|
||||
def poll(cls, context):
|
||||
settings = cls.paint_settings(context)
|
||||
brush = settings.brush
|
||||
if context.image_paint_object:
|
||||
capabilities = brush.image_paint_capabilities
|
||||
@@ -444,8 +444,8 @@ class VIEW3D_PT_tools_brush_gradient(Panel, View3DPaintPanel):
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
def poll(self, context):
|
||||
settings = self.paint_settings(context)
|
||||
def poll(cls, context):
|
||||
settings = cls.paint_settings(context)
|
||||
brush = settings.brush
|
||||
capabilities = brush.image_paint_capabilities
|
||||
|
||||
@@ -475,7 +475,7 @@ class VIEW3D_PT_tools_brush_clone(Panel, View3DPaintPanel):
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
def poll(self, context):
|
||||
def poll(cls, context):
|
||||
settings = self.paint_settings(context)
|
||||
brush = settings.brush
|
||||
|
||||
|
||||
Reference in New Issue
Block a user