Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-08-09 05:42:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-09 05:42:53 +0400
commit2384910b60c161971ba37d7a14874580def12ea0 (patch)
tree33b8174bd04426c6a5b2bed7c2eed12aeb74924c /render_renderfarmfi.py
parent6367ee9946c8bc0ee9e91fc97d8303ce38991fc4 (diff)
update for changes in blender.
Diffstat (limited to 'render_renderfarmfi.py')
-rw-r--r--render_renderfarmfi.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/render_renderfarmfi.py b/render_renderfarmfi.py
index 59632a98..f333fe3c 100644
--- a/render_renderfarmfi.py
+++ b/render_renderfarmfi.py
@@ -168,10 +168,10 @@ class LOGIN_PT_RenderfarmFi(RenderButtonsPanel, bpy.types.Panel):
bl_label = 'Login to Renderfarm.fi'
COMPAT_ENGINES = set(['RENDERFARMFI_RENDER'])
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
rd = context.scene.render
- return (rd.use_game_engine==False) and (rd.engine in __class__.COMPAT_ENGINES)
+ return (rd.use_game_engine==False) and (rd.engine in cls.COMPAT_ENGINES)
def draw(self, context):
layout = self.layout
@@ -194,10 +194,10 @@ class CHECK_PT_RenderfarmFi(RenderButtonsPanel, bpy.types.Panel):
bl_label = 'Check for updates'
COMPAT_ENGINES = set(['RENDERFARMFI_RENDER'])
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
rd = context.scene.render
- return (rd.use_game_engine==False) and (rd.engine in __class__.COMPAT_ENGINES)
+ return (rd.use_game_engine==False) and (rd.engine in cls.COMPAT_ENGINES)
def draw(self, context):
layout = self.layout
@@ -214,10 +214,10 @@ class SESSIONS_PT_RenderfarmFi(RenderButtonsPanel, bpy.types.Panel):
bl_label = 'Sessions'
COMPAT_ENGINES = set(['RENDERFARMFI_RENDER'])
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
rd = context.scene.render
- return (rd.use_game_engine==False) and (rd.engine in __class__.COMPAT_ENGINES)
+ return (rd.use_game_engine==False) and (rd.engine in cls.COMPAT_ENGINES)
def draw(self, context):
layout = self.layout
@@ -240,10 +240,10 @@ class RENDER_PT_RenderfarmFi(RenderButtonsPanel, bpy.types.Panel):
bl_label = "Scene Settings"
COMPAT_ENGINES = set(['RENDERFARMFI_RENDER'])
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
rd = context.scene.render
- return (rd.use_game_engine==False) and (rd.engine in __class__.COMPAT_ENGINES)
+ return (rd.use_game_engine==False) and (rd.engine in cls.COMPAT_ENGINES)
def draw(self, context):
layout = self.layout