diff --git a/packages/core/src/textures/resources/SVGResource.js b/packages/core/src/textures/resources/SVGResource.js index 410f1c4..2ed3970 100644 --- a/packages/core/src/textures/resources/SVGResource.js +++ b/packages/core/src/textures/resources/SVGResource.js @@ -178,7 +178,8 @@ const svgWidth = svgSize.width; const svgHeight = svgSize.height; - if (!svgWidth || !svgHeight) { + if (!svgWidth || !svgHeight) + { throw new Error('The SVG image must have width and height defined (in pixels), canvas API needs them.'); }