X3D/VRML import: Fix blender/blender-addons#98442, check if USE-based cache is set in IndexedFaceSet #7

Merged
Cedric Steiert merged 2 commits from Bujus_Krachus/io_scene_x3d:add-check-for-USE-based-cache into main 2024-08-06 17:31:43 +02:00

View File

@ -1888,7 +1888,7 @@ def importMesh_IndexedFaceSet(geom, ancestry):
if coord is None:
return None
if coord.reference:
if coord.reference and coord.getRealNode().parsed:
points = coord.getRealNode().parsed
# We need unflattened coord array here, while
# importMesh_ReadVertices uses flattened. Can't cache both :(