2
0
Эх сурвалжийг харах

Examples: Add gzi encoding option to NRRD Loader

IsseiMori 4 жил өмнө
parent
commit
e28c3b0451

+ 1 - 1
examples/jsm/loaders/NRRDLoader.js

@@ -318,7 +318,7 @@ NRRDLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 		parseHeader( _header );
 		parseHeader( _header );
 
 
 		var _data = _bytes.subarray( _data_start ); // the data without header
 		var _data = _bytes.subarray( _data_start ); // the data without header
-		if ( headerObject.encoding === 'gzip' || headerObject.encoding === 'gz' ) {
+		if ( headerObject.encoding === 'gzip' || headerObject.encoding === 'gz' || headerObject.encoding === 'gzi' ) {
 
 
 			// we need to decompress the datastream
 			// we need to decompress the datastream
 			// here we start the unzipping and get a typed Uint8Array back
 			// here we start the unzipping and get a typed Uint8Array back