diff options
Diffstat (limited to 'release/scripts/io/netrender/ui.py')
-rw-r--r-- | release/scripts/io/netrender/ui.py | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/release/scripts/io/netrender/ui.py b/release/scripts/io/netrender/ui.py index d5269803ffd..1dcee85820b 100644 --- a/release/scripts/io/netrender/ui.py +++ b/release/scripts/io/netrender/ui.py @@ -93,9 +93,9 @@ class RENDER_PT_network_settings(bpy.types.Panel, RenderButtonsPanel): bl_label = "Network Settings" COMPAT_ENGINES = {'NET_RENDER'} - @staticmethod - def poll(context): - return base_poll(__class__, context) + @classmethod + def poll(cls, context): + return base_poll(cls, context) def draw(self, context): layout = self.layout @@ -131,10 +131,10 @@ class RENDER_PT_network_slave_settings(bpy.types.Panel, RenderButtonsPanel): bl_label = "Slave Settings" COMPAT_ENGINES = {'NET_RENDER'} - @staticmethod - def poll(context): + @classmethod + def poll(cls, context): scene = context.scene - return base_poll(__class__, context) and scene.network_render.mode == "RENDER_SLAVE" + return base_poll(cls, context) and scene.network_render.mode == "RENDER_SLAVE" def draw(self, context): layout = self.layout @@ -156,10 +156,10 @@ class RENDER_PT_network_master_settings(bpy.types.Panel, RenderButtonsPanel): bl_label = "Master Settings" COMPAT_ENGINES = {'NET_RENDER'} - @staticmethod - def poll(context): + @classmethod + def poll(cls, context): scene = context.scene - return base_poll(__class__, context) and scene.network_render.mode == "RENDER_MASTER" + return base_poll(cls, context) and scene.network_render.mode == "RENDER_MASTER" def draw(self, context): layout = self.layout @@ -174,10 +174,10 @@ class RENDER_PT_network_job(bpy.types.Panel, RenderButtonsPanel): bl_label = "Job Settings" COMPAT_ENGINES = {'NET_RENDER'} - @staticmethod - def poll(context): + @classmethod + def poll(cls, context): scene = context.scene - return base_poll(__class__, context) and scene.network_render.mode == "RENDER_CLIENT" + return base_poll(cls, context) and scene.network_render.mode == "RENDER_CLIENT" def draw(self, context): layout = self.layout @@ -214,14 +214,14 @@ class RENDER_PT_network_slaves(bpy.types.Panel, RenderButtonsPanel): bl_label = "Slaves Status" COMPAT_ENGINES = {'NET_RENDER'} - @staticmethod - def poll(context): + @classmethod + def poll(cls, context): scene = context.scene netsettings = scene.network_render if netsettings.mode != "RENDER_CLIENT": return False verify_address(netsettings) - return base_poll(__class__, context) and netsettings.server_address != "[default]" + return base_poll(cls, context) and netsettings.server_address != "[default]" def draw(self, context): layout = self.layout @@ -252,14 +252,14 @@ class RENDER_PT_network_slaves_blacklist(bpy.types.Panel, RenderButtonsPanel): bl_label = "Slaves Blacklist" COMPAT_ENGINES = {'NET_RENDER'} - @staticmethod - def poll(context): + @classmethod + def poll(cls, context): scene = context.scene netsettings = scene.network_render if netsettings.mode != "RENDER_CLIENT": return False verify_address(netsettings) - return base_poll(__class__, context) and netsettings.server_address != "[default]" + return base_poll(cls, context) and netsettings.server_address != "[default]" def draw(self, context): layout = self.layout @@ -289,14 +289,14 @@ class RENDER_PT_network_jobs(bpy.types.Panel, RenderButtonsPanel): bl_label = "Jobs" COMPAT_ENGINES = {'NET_RENDER'} - @staticmethod - def poll(context): + @classmethod + def poll(cls, context): scene = context.scene netsettings = scene.network_render if netsettings.mode != "RENDER_CLIENT": return False verify_address(netsettings) - return base_poll(__class__, context) and netsettings.server_address != "[default]" + return base_poll(cls, context) and netsettings.server_address != "[default]" def draw(self, context): layout = self.layout |