diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-19 08:36:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-19 08:36:07 +0300 |
commit | 3633a79789d7b47fece7924dc6fe99432fa5cac2 (patch) | |
tree | eb52bf20417bac8fb09c113d5c2c16c664c1f476 /release | |
parent | 5b0f0421ef1d841d7389b504057dbf76998007c7 (diff) |
Cleanup: correct misleading classmethod arg
Diffstat (limited to 'release')
4 files changed, 14 insertions, 14 deletions
diff --git a/release/scripts/modules/bpy_extras/object_utils.py b/release/scripts/modules/bpy_extras/object_utils.py index d08b98772f5..cd74aa39916 100644 --- a/release/scripts/modules/bpy_extras/object_utils.py +++ b/release/scripts/modules/bpy_extras/object_utils.py @@ -187,7 +187,7 @@ class AddObjectHelper: ) @classmethod - def poll(self, context): + def poll(cls, context): return context.scene.library is None diff --git a/release/scripts/startup/bl_ui/properties_output.py b/release/scripts/startup/bl_ui/properties_output.py index f24adbbcf91..00be0f1a792 100644 --- a/release/scripts/startup/bl_ui/properties_output.py +++ b/release/scripts/startup/bl_ui/properties_output.py @@ -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 diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index 81c411a06cb..dd6dd823a64 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -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 diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 35576063b25..a87038a524d 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -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 |