Skip to content
Snippets Groups Projects
Commit 933ff51a authored by Sergey Sharybin's avatar Sergey Sharybin
Browse files

Fix #30891: Fracture tools seems to be broken

Replace usage of mesh.faces with mesh.polygons
parent 43ec624f
No related branches found
No related tags found
No related merge requests found
...@@ -120,17 +120,17 @@ def getIslands(shard): ...@@ -120,17 +120,17 @@ def getIslands(shard):
while len(gproc) > 0: while len(gproc) > 0:
i = gproc.pop(0) i = gproc.pop(0)
for f in sm.faces: for p in sm.polygons:
#if i in f.vertices: #if i in f.vertices:
for v in f.vertices: for v in p.vertices:
if v == i: if v == i:
for v1 in f.vertices: for v1 in p.vertices:
if vgi[v1] == -1: if vgi[v1] == -1:
vgi[v1] = gindex vgi[v1] = gindex
vgroups[gindex].append(v1) vgroups[gindex].append(v1)
gproc.append(v1) gproc.append(v1)
fgroups[gindex].append(f.index) fgroups[gindex].append(p.index)
gindex += 1 gindex += 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment