Explorar o código

SVGLoader: Clean up

Mugen87 %!s(int64=6) %!d(string=hai) anos
pai
achega
c2cf0d9733
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      examples/js/loaders/SVGLoader.js

+ 2 - 2
examples/js/loaders/SVGLoader.js

@@ -801,13 +801,13 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.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 ) );
 
 			}
 

粤ICP备19079148号