[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3239] trunk/py/scripts/addons/ object_fracture/fracture_ops.py: Fix #30891: Fracture tools seems to be broken

Sergey Sharybin sergey.vfx at gmail.com
Tue Apr 10 12:46:29 CEST 2012


Revision: 3239
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3239
Author:   nazgul
Date:     2012-04-10 10:46:29 +0000 (Tue, 10 Apr 2012)
Log Message:
-----------
Fix #30891: Fracture tools seems to be broken

Replace usage of mesh.faces with mesh.polygons

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 04:16:51 UTC (rev 3238)
+++ trunk/py/scripts/addons/object_fracture/fracture_ops.py	2012-04-10 10:46:29 UTC (rev 3239)
@@ -120,17 +120,17 @@
 
             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
 



More information about the Bf-extensions-cvs mailing list