Преглед на файлове

NRRDLoader: Make sure `scan()` always returns a typed array. (#27212)

Michael Herzog преди 1 година
родител
ревизия
a6a5d8b34c
променени са 1 файла, в които са добавени 0 реда и са изтрити 13 реда
  1. 0 13
      examples/jsm/loaders/NRRDLoader.js

+ 0 - 13
examples/jsm/loaders/NRRDLoader.js

@@ -76,12 +76,6 @@ class NRRDLoader extends Loader {
 
 		function scan( type, chunks ) {
 
-			if ( chunks === undefined || chunks === null ) {
-
-				chunks = 1;
-
-			}
-
 			let _chunkSize = 1;
 			let _array_type = Uint8Array;
 
@@ -138,13 +132,6 @@ class NRRDLoader extends Loader {
 
 			}
 
-			if ( chunks == 1 ) {
-
-				// if only one chunk was requested, just return one value
-				return _bytes[ 0 ];
-
-			}
-
 			// return the byte array
 			return _bytes;