diff --git a/source/import_x3d.py b/source/import_x3d.py index 4c21551..3c03696 100644 --- a/source/import_x3d.py +++ b/source/import_x3d.py @@ -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