فهرست منبع

Add warning about url() not implemented

yomboprime 4 سال پیش
والد
کامیت
267b18df33
2فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 2 0
      examples/js/loaders/SVGLoader.js
  2. 2 0
      examples/jsm/loaders/SVGLoader.js

+ 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;
 
 				};