Block a user
Fix per vertex normals and colors import
Hombre57
created branch per-vertex_normals_and_colors in Hombre57/io_scene_x3d
2024-07-21 10:51:16 +02:00
Hombre57
pushed to per-vertex_normals_and_colors at Hombre57/io_scene_x3d
2024-07-21 10:51:16 +02:00
fd2106afa5
Fix per vertex normals and colors import
fix list index out of range for color_per_vertex
In short :
// Test will be fast for correct files, more time consuming for broken files
if ('-1' not in color_index)
// Build a temporary list and place '-1' at the…
fix list index out of range for color_per_vertex
@Bujus_Krachus Here are some files. The screenshots are taken after importing the "corrected" version.
fix list index out of range for color_per_vertex
Have you tested your patch with a correctly formed VRML patch, i.e. with face vertex color index ending with '-1' like other per vertex nodes does ?
VRML Import Error
@G-10 The VRML file you provided does not respect the standard, see here http://graphcomp.com/info/specs/sgi/vrml/spec/part1/nodesRef.html#IndexedFaceSet :
If the color field is not NULL then…