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-05 19:58:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-05 19:58:52 +0400
commitebfb6490e11ae9ae0429737c1bf0e0cd64222f5a (patch)
treed6b7ff4e93a37043d83ceb5dbabfdf8bc2bab117 /space_view3d_materials_utils.py
parent8d94603a8de70935166a933d2fb0f9af369d567f (diff)
update for changes in blender.
Diffstat (limited to 'space_view3d_materials_utils.py')
-rw-r--r--space_view3d_materials_utils.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/space_view3d_materials_utils.py b/space_view3d_materials_utils.py
index 0cbfa0dd..ccd4bb07 100644
--- a/space_view3d_materials_utils.py
+++ b/space_view3d_materials_utils.py
@@ -486,7 +486,8 @@ class VIEW3D_OT_texface_to_material(bpy.types.Operator):
bl_label = "MW Texface Images to Material/Texture"
bl_options = {'REGISTER', 'UNDO'}
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -507,7 +508,8 @@ class VIEW3D_OT_assign_material(bpy.types.Operator):
description = 'Name of Material to Assign',
default = "", maxlen = 21)
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -525,7 +527,8 @@ class VIEW3D_OT_clean_material_slots(bpy.types.Operator):
bl_label = "MW Clean Material Slots"
bl_options = {'REGISTER', 'UNDO'}
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -538,7 +541,8 @@ class VIEW3D_OT_material_to_texface(bpy.types.Operator):
bl_label = "MW Material Images to Texface"
bl_options = {'REGISTER', 'UNDO'}
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -554,7 +558,8 @@ class VIEW3D_OT_select_material_by_name(bpy.types.Operator):
description = 'Name of Material to Select',
default = "", maxlen = 21)
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -581,7 +586,8 @@ class VIEW3D_OT_replace_material(bpy.types.Operator):
description="replace for all objects in this blend file",
default = True)
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):