Selaa lähdekoodia

PCDLoader: Fix data parsing for Edge.

Mugen87 6 vuotta sitten
vanhempi
commit
330cd09f22
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      examples/js/loaders/PCDLoader.js

+ 1 - 1
examples/js/loaders/PCDLoader.js

@@ -169,7 +169,7 @@ THREE.PCDLoader.prototype = {
 
 		}
 
-		var textData = THREE.LoaderUtils.decodeText( data );
+		var textData = THREE.LoaderUtils.decodeText( new Uint8Array( data ) );
 
 		// parse header (always ascii format)