Cleanup: correct misleading classmethod arg
authorCampbell Barton <ideasman42@gmail.com>
Fri, 19 Apr 2019 05:36:07 +0000 (07:36 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 19 Apr 2019 05:36:07 +0000 (07:36 +0200)
intern/cycles/app/io_export_cycles_xml.py
intern/cycles/blender/addon/ui.py
release/scripts/modules/bpy_extras/object_utils.py
release/scripts/startup/bl_ui/properties_output.py
release/scripts/startup/bl_ui/space_image.py
release/scripts/startup/bl_ui/space_view3d_toolbar.py

index a1b42f7..d2c6dc4 100644 (file)
@@ -64,7 +64,7 @@ class RenderButtonsPanel():
     bl_context = "render"
 
     @classmethod
-    def poll(self, context):
+    def poll(cls, context):
         return context.engine == 'CYCLES'
 
 
index 4b0e179..16ad371 100644 (file)
@@ -185,7 +185,7 @@ class CYCLES_RENDER_PT_sampling_sub_samples(CyclesButtonsPanel, Panel):
     bl_parent_id = "CYCLES_RENDER_PT_sampling"
 
     @classmethod
-    def poll(self, context):
+    def poll(cls, context):
         scene = context.scene
         cscene = scene.cycles
         return cscene.progressive != 'PATH' and use_branched_path(context)
@@ -256,7 +256,7 @@ class CYCLES_RENDER_PT_sampling_total(CyclesButtonsPanel, Panel):
     bl_parent_id = "CYCLES_RENDER_PT_sampling"
 
     @classmethod
-    def poll(self, context):
+    def poll(cls, context):
         scene = context.scene
         cscene = scene.cycles
 
@@ -312,7 +312,7 @@ class CYCLES_RENDER_PT_subdivision(CyclesButtonsPanel, Panel):
     bl_options = {'DEFAULT_CLOSED'}
 
     @classmethod
-    def poll(self, context):
+    def poll(cls, context):
         return (context.scene.render.engine == 'CYCLES') and (context.scene.cycles.feature_set == 'EXPERIMENTAL')
 
     def draw(self, context):
index d08b987..cd74aa3 100644 (file)
@@ -187,7 +187,7 @@ class AddObjectHelper:
     )
 
     @classmethod
-    def poll(self, context):
+    def poll(cls, context):
         return context.scene.library is None
 
 
index f24adbb..00be0f1 100644 (file)
@@ -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
 
index 81c411a..dd6dd82 100644 (file)
@@ -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
index 3557606..a87038a 100644 (file)
@@ -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