Przeglądaj źródła

Add warning about url() not implemented

yomboprime 4 lat temu
rodzic
commit
267b18df33

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

@@ -911,6 +911,8 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 
 				if ( adjustFunction === undefined ) adjustFunction = function copy( v ) {
 
+					if ( v.startsWith( 'url' ) ) console.warn( "SVGLoader: url access in attributes is not implemented." );
+
 					return v;
 
 				};

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

@@ -921,6 +921,8 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 
 				if ( adjustFunction === undefined ) adjustFunction = function copy( v ) {
 
+					if ( v.startsWith( 'url' ) ) console.warn( "SVGLoader: url access in attributes is not implemented." );
+
 					return v;
 
 				};