Browse Source

PCDLoader: Fix data parsing for Edge.

Mugen87 6 years ago
parent
commit
330cd09f22
1 changed files with 1 additions and 1 deletions
  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)