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.
Showing only changes of commit 354d9bb602 - Show all commits

View File

@ -1876,7 +1876,7 @@ def importMesh_IndexedFaceSet(geom, ancestry):
ccw = geom.getFieldAsBool('ccw', True, ancestry) ccw = geom.getFieldAsBool('ccw', True, ancestry)
coord = geom.getChildBySpec('Coordinate') coord = geom.getChildBySpec('Coordinate')
if coord.reference: if coord.reference and coord.getRealNode().parsed:
points = coord.getRealNode().parsed points = coord.getRealNode().parsed
# We need unflattened coord array here, while # We need unflattened coord array here, while
# importMesh_ReadVertices uses flattened. Can't cache both :( # importMesh_ReadVertices uses flattened. Can't cache both :(