[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3240] trunk/py/scripts/addons/ object_fracture/fracture_ops.py: minor edit to fracture, while looking into another bug.
Campbell Barton
ideasman42 at gmail.com
Tue Apr 10 13:20:51 CEST 2012
Revision: 3240
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3240
Author: campbellbarton
Date: 2012-04-10 11:20:51 +0000 (Tue, 10 Apr 2012)
Log Message:
-----------
minor edit to fracture, while looking into another bug.
Modified Paths:
--------------
trunk/py/scripts/addons/object_fracture/fracture_ops.py
Modified: trunk/py/scripts/addons/object_fracture/fracture_ops.py
===================================================================
--- trunk/py/scripts/addons/object_fracture/fracture_ops.py 2012-04-10 10:46:29 UTC (rev 3239)
+++ trunk/py/scripts/addons/object_fracture/fracture_ops.py 2012-04-10 11:20:51 UTC (rev 3240)
@@ -107,9 +107,7 @@
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 @@
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:
More information about the Bf-extensions-cvs
mailing list