Explorar o código

fixed base64 image parse bug

Lewy Blue %!s(int64=8) %!d(string=hai) anos
pai
achega
67423a8139
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      examples/js/loaders/FBXLoader.js

+ 6 - 0
examples/js/loaders/FBXLoader.js

@@ -261,6 +261,12 @@
 
 
 		if ( typeof content === 'string' ) {
 		if ( typeof content === 'string' ) {
 
 
+			if ( content.slice( - 1 ) !== '=' ) {
+
+				content = content.slice( 0, - 1 );
+
+			}
+
 			return 'data:' + type + ';base64,' + content;
 			return 'data:' + type + ';base64,' + content;
 
 
 		} else {
 		} else {

粤ICP备19079148号