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 /space_view3d_materials_utils.py
parent6367ee9946c8bc0ee9e91fc97d8303ce38991fc4 (diff)
update for changes in blender.
Diffstat (limited to 'space_view3d_materials_utils.py')
-rw-r--r--space_view3d_materials_utils.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/space_view3d_materials_utils.py b/space_view3d_materials_utils.py
index 909aa8ef..004d4834 100644
--- a/space_view3d_materials_utils.py
+++ b/space_view3d_materials_utils.py
@@ -487,8 +487,8 @@ class VIEW3D_OT_texface_to_material(bpy.types.Operator):
bl_label = "MW Texface Images to Material/Texture"
bl_options = {'REGISTER', 'UNDO'}
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -509,8 +509,8 @@ class VIEW3D_OT_assign_material(bpy.types.Operator):
description = 'Name of Material to Assign',
default = "", maxlen = 21)
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -528,8 +528,8 @@ class VIEW3D_OT_clean_material_slots(bpy.types.Operator):
bl_label = "MW Clean Material Slots"
bl_options = {'REGISTER', 'UNDO'}
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -542,8 +542,8 @@ class VIEW3D_OT_material_to_texface(bpy.types.Operator):
bl_label = "MW Material Images to Texface"
bl_options = {'REGISTER', 'UNDO'}
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -559,8 +559,8 @@ class VIEW3D_OT_select_material_by_name(bpy.types.Operator):
description = 'Name of Material to Select',
default = "", maxlen = 21)
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -587,8 +587,8 @@ class VIEW3D_OT_replace_material(bpy.types.Operator):
description="replace for all objects in this blend file",
default = True)
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):