Cleanup: use staticmethods

This commit is contained in:
Campbell Barton
2015-06-07 17:40:39 +10:00
parent bf010c4a15
commit 404f9ddc37
7 changed files with 33 additions and 18 deletions

View File

@@ -126,7 +126,8 @@ class RENDERLAYER_PT_layer_passes(RenderLayerButtonsPanel, Panel):
bl_options = {'DEFAULT_CLOSED'}
COMPAT_ENGINES = {'BLENDER_RENDER'}
def draw_pass_type_buttons(self, box, rl, pass_type):
@staticmethod
def draw_pass_type_buttons(box, rl, pass_type):
# property names
use_pass_type = "use_pass_" + pass_type
exclude_pass_type = "exclude_" + pass_type