From a8a322227e8c3099b3093ff0c0fd81090c39e564 Mon Sep 17 00:00:00 2001 From: Michael Herzog Date: Thu, 7 Jul 2022 06:37:23 +0200 Subject: [PATCH] SVGLoader: Make createShapes() usable for other modules. (#24293) --- examples/jsm/loaders/SVGLoader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/jsm/loaders/SVGLoader.js b/examples/jsm/loaders/SVGLoader.js index 55644dbaa21edd..fd2aa516b72424 100644 --- a/examples/jsm/loaders/SVGLoader.js +++ b/examples/jsm/loaders/SVGLoader.js @@ -2107,7 +2107,7 @@ class SVGLoader extends Loader { simplePaths = simplePaths.filter( sp => sp.points.length > 1 ); // check if path is solid or a hole - const isAHole = simplePaths.map( p => isHoleTo( p, simplePaths, scanlineMinX, scanlineMaxX, shapePath.userData.style.fillRule ) ); + const isAHole = simplePaths.map( p => isHoleTo( p, simplePaths, scanlineMinX, scanlineMaxX, shapePath.userData?.style.fillRule ) ); const shapesToReturn = [];