From 354d9bb602246b47d153c3e3863ab1a0a419fdf6 Mon Sep 17 00:00:00 2001 From: uh wot Date: Tue, 9 May 2023 23:32:23 +0200 Subject: [PATCH] X3D/VRML import: Fix #98442, check if USE-based cache is set in IndexedFaceSet --- io_scene_x3d/import_x3d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index 6b2c7afc3..bff213af7 100644 --- a/io_scene_x3d/import_x3d.py +++ b/io_scene_x3d/import_x3d.py @@ -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 :( -- 2.30.2