浏览代码

SVGLoader: Make createShapes() usable for other modules. (#24293)

Michael Herzog 3 年之前
父节点
当前提交
e860e3dfc2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/loaders/SVGLoader.js

+ 1 - 1
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 = [];