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:
authorThomas Dinges <blender@dingto.org>2010-09-11 03:40:32 +0400
committerThomas Dinges <blender@dingto.org>2010-09-11 03:40:32 +0400
commit46a2c6aa73b15b83f08356288e521647f2c3dbce (patch)
tree1b924a41c142443874cb658ffe5545b8f09ec22b /space_view3d_materials_utils.py
parent135017985179ea98e618a4648ac5fee7f45026da (diff)
Patch [#23759] more replace self.properties.foo --> self.foo for bf-extensions/trunk/py/scripts
by Filiciss Muhgue (filiciss). Thanks a lot! Part 2: Extensions
Diffstat (limited to 'space_view3d_materials_utils.py')
-rw-r--r--space_view3d_materials_utils.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/space_view3d_materials_utils.py b/space_view3d_materials_utils.py
index 5d680eae..2b928607 100644
--- a/space_view3d_materials_utils.py
+++ b/space_view3d_materials_utils.py
@@ -518,7 +518,7 @@ class VIEW3D_OT_assign_material(bpy.types.Operator):
return context.active_object != None
def execute(self, context):
- mn = self.properties.matname
+ mn = self.matname
print(mn)
assign_mat(mn)
cleanmatslots()
@@ -568,7 +568,7 @@ class VIEW3D_OT_select_material_by_name(bpy.types.Operator):
return context.active_object != None
def execute(self, context):
- mn = self.properties.matname
+ mn = self.matname
select_material_by_name(mn)
return {'FINISHED'}
@@ -596,9 +596,9 @@ class VIEW3D_OT_replace_material(bpy.types.Operator):
return context.active_object != None
def execute(self, context):
- m1 = self.properties.matorg
- m2 = self.properties.matrep
- all = self.properties.all_objects
+ m1 = self.matorg
+ m2 = self.matrep
+ all = self.all_objects
replace_material(m1,m2,all)
return {'FINISHED'}