Browse Source

fixed base64 image parse bug

Lewy Blue 7 years ago
parent
commit
67423a8139
1 changed files with 6 additions and 0 deletions
  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 {