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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-04-10 14:46:29 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-04-10 14:46:29 +0400
commit933ff51a9791c2d28b78b29bc792f8328d39824f (patch)
tree564f0e7e6ca3d2669395b6bb8f1a50d5361e08cd /object_fracture
parent43ec624f4d0785a15b1aa7dc679f9627b10ed5c6 (diff)
Fix #30891: Fracture tools seems to be broken
Replace usage of mesh.faces with mesh.polygons
Diffstat (limited to 'object_fracture')
-rw-r--r--object_fracture/fracture_ops.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/object_fracture/fracture_ops.py b/object_fracture/fracture_ops.py
index 61ccc182..1f966ae4 100644
--- a/object_fracture/fracture_ops.py
+++ b/object_fracture/fracture_ops.py
@@ -120,17 +120,17 @@ def getIslands(shard):
while len(gproc) > 0:
i = gproc.pop(0)
- for f in sm.faces:
+ for p in sm.polygons:
#if i in f.vertices:
- for v in f.vertices:
+ for v in p.vertices:
if v == i:
- for v1 in f.vertices:
+ for v1 in p.vertices:
if vgi[v1] == -1:
vgi[v1] = gindex
vgroups[gindex].append(v1)
gproc.append(v1)
- fgroups[gindex].append(f.index)
+ fgroups[gindex].append(p.index)
gindex += 1