fix blender/blender-addons#105398 include case faces same color #1

Closed
Cedric Steiert wants to merge 1 commits from Bujus_Krachus/io_scene_x3d:fix-list-index-out-of-range into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 14cf678fa9 - Show all commits

View File

@ -1985,6 +1985,10 @@ def importMesh_IndexedFaceSet(geom, ancestry):
cco = [cco for (i, f) in enumerate(faces)
for j in f
for cco in rgb[color_index[i]]]
elif len(faces) > len(rgb): # static Color per face without index, when all faces have the same color
cco = [cco for (i, f) in enumerate(faces)
for j in f
for cco in rgb[0]]
else: # Color per face without index
cco = [cco for (i, f) in enumerate(faces)
for j in f