Ver Fonte

Merge pull request #13819 from timknip/dev

LegacyGLTFLoader: fix texture loading of binary glTF 1.0
Mr.doob há 7 anos atrás
pai
commit
39fcbc7d3e
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      examples/js/loaders/deprecated/LegacyGLTFLoader.js

+ 7 - 0
examples/js/loaders/deprecated/LegacyGLTFLoader.js

@@ -649,6 +649,13 @@ THREE.LegacyGLTFLoader = ( function () {
 
 		}
 
+		// Blob URL
+		if ( /^blob:.*$/i.test( url ) ) {
+
+			return url;
+
+		}
+
 		// Relative URL
 		return ( path || '' ) + url;