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:
authorBrendon Murphy <meta.androcto1@gmail.com>2012-04-20 15:08:38 +0400
committerBrendon Murphy <meta.androcto1@gmail.com>2012-04-20 15:08:38 +0400
commit911691d6e8b208e2a4a2d016cf21e07ea1396887 (patch)
tree00a44a711777969ee188d102bfc040c09c378a1a /space_view3d_copy_attributes.py
parent90262b4e8abc87a73f1b6049b89df563aa0091d1 (diff)
small fix for bmesh (face materials)
added warning "some mesh functions broken"
Diffstat (limited to 'space_view3d_copy_attributes.py')
-rw-r--r--space_view3d_copy_attributes.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py
index d0ca2e08..63da0c56 100644
--- a/space_view3d_copy_attributes.py
+++ b/space_view3d_copy_attributes.py
@@ -25,6 +25,7 @@ bl_info = {
"blender": (2, 6, 1),
'location': 'View3D > Ctrl-C',
'description': 'Copy Attributes Menu from Blender 2.4',
+ "warning": "some mesh functions broken",
'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/'
'Scripts/3D_interaction/Copy_Attributes_Menu',
'tracker_url': 'https://projects.blender.org/tracker/index.php?'
@@ -691,7 +692,7 @@ class MESH_OT_CopyFaceSettings(bpy.types.Operator):
bpy.ops.object.editmode_toggle()
if mode == 'MAT':
- from_data = mesh.faces
+ from_data = mesh.polygons
to_data = from_data
else:
if mode == 'VCOL':
@@ -704,9 +705,9 @@ class MESH_OT_CopyFaceSettings(bpy.types.Operator):
return _end({'CANCELLED'})
from_data = layers[layername or act_layer.name].data
to_data = act_layer.data
- from_face = from_data[mesh.faces.active]
+ from_face = from_data[mesh.polygons.active]
- for f in mesh.faces:
+ for f in mesh.polygons:
if f.select:
if to_data != from_data:
from_face = from_data[f.index]