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

Open
uh-wot wants to merge 1 commits from uh-wot/blender-addons:x3d_fix_indexedfaceset_cache into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 1 additions and 1 deletions

View File

@ -1876,7 +1876,7 @@ def importMesh_IndexedFaceSet(geom, ancestry):
ccw = geom.getFieldAsBool('ccw', True, ancestry)
coord = geom.getChildBySpec('Coordinate')
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 :(