From 898c14affc264d90801239c3b27a88bf8fd6f691 Mon Sep 17 00:00:00 2001 From: yomboprime Date: Fri, 4 Oct 2019 23:46:16 +0200 Subject: [PATCH] Fix SVGLoader strokes not rendering in Firefox --- examples/jsm/loaders/SVGLoader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/jsm/loaders/SVGLoader.js b/examples/jsm/loaders/SVGLoader.js index 30cf5133db..e7803d5b89 100644 --- a/examples/jsm/loaders/SVGLoader.js +++ b/examples/jsm/loaders/SVGLoader.js @@ -814,13 +814,13 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), { function clamp( v ) { - return Math.max( 0, Math.min( 1, v ) ); + return Math.max( 0, Math.min( 1, parseFloat( v ) ) ); } function positive( v ) { - return Math.max( 0, v ); + return Math.max( 0, parseFloat( v ) ); } -- GitLab