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>2012-04-10 15:20:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-10 15:20:51 +0400
commit56a863947d9de1bed73288b0f98ef46c2321f18a (patch)
treed2dc3d31966f778da5b72b67bb2a673ca52b83b8 /object_fracture
parent933ff51a9791c2d28b78b29bc792f8328d39824f (diff)
minor edit to fracture, while looking into another bug.
Diffstat (limited to 'object_fracture')
-rw-r--r--object_fracture/fracture_ops.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/object_fracture/fracture_ops.py b/object_fracture/fracture_ops.py
index 1f966ae4..7a7ec387 100644
--- a/object_fracture/fracture_ops.py
+++ b/object_fracture/fracture_ops.py
@@ -107,9 +107,7 @@ def getIslands(shard):
vgroups = []
fgroups = []
- vgi = []
- for v in sm.vertices:
- vgi.append(-1)
+ vgi = [-1] * len(sm.vertices)
gindex = 0
for i in range(len(vgi)):
@@ -119,6 +117,7 @@ def getIslands(shard):
fgroups.append([])
while len(gproc) > 0:
+ # XXX - is popping the first needed? - pop() without args is fastest - campbell
i = gproc.pop(0)
for p in sm.polygons:
#if i in f.vertices: