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>2011-07-10 21:28:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-10 21:28:53 +0400
commit8012053e1e178c8cabb133e05dc1e36d52908fa7 (patch)
treefd3f79b7e8cd9ee165ff2ece9a1ef9d2cf7ca058 /space_view3d_materials_utils.py
parent0507e7a5b8dd558e12c906dd398a6e0bd7f76911 (diff)
cleanup
- remove unused imports - remove/comment unused vars - fix for some bugs with unused vars being used
Diffstat (limited to 'space_view3d_materials_utils.py')
-rw-r--r--space_view3d_materials_utils.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/space_view3d_materials_utils.py b/space_view3d_materials_utils.py
index 3c0fa523..2b3bb2d0 100644
--- a/space_view3d_materials_utils.py
+++ b/space_view3d_materials_utils.py
@@ -149,11 +149,11 @@ def select_material_by_name(find_mat):
#same material can be on multiple slots
slot_indeces =[]
i = 0
- found = False
+ # found = False # UNUSED
for m in ms:
if m.material.name == find_mat:
slot_indeces.append(i)
- found = True
+ # found = True # UNUSED
i += 1
me = ob.data
for f in me.faces:
@@ -647,9 +647,6 @@ class VIEW3D_MT_assign_material(bpy.types.Menu):
def draw(self, context):
layout = self.layout
layout.operator_context = 'INVOKE_REGION_WIN'
-
- ob = context
- layout.label
for i in range (len(bpy.data.materials)):
layout.operator("view3d.assign_material",