Răsfoiți Sursa

Merge pull request #14990 from gero3/patch-4

remove unnecessary checks
Mr.doob 6 ani în urmă
părinte
comite
42d5967785
1 a modificat fișierele cu 1 adăugiri și 28 ștergeri
  1. 1 28
      examples/js/loaders/VTKLoader.js

+ 1 - 28
examples/js/loaders/VTKLoader.js

@@ -777,37 +777,10 @@ Object.assign( THREE.VTKLoader.prototype, THREE.EventDispatcher.prototype, {
 
 					delete ele[ '#text' ];
 
-					// Get the content and optimize it
-					if ( ele.attributes.type === 'Float32' ) {
-
-						if ( ele.attributes.format === 'binary' ) {
-
-							if ( ! compressed ) {
-
-								txt = txt.filter( function ( el, idx ) {
-
-									if ( idx !== 0 ) return true;
-
-								} );
-
-							}
-
-						}
-
-					} else if ( ele.attributes.type === 'Int64' ) {
+					if ( ele.attributes.type === 'Int64' ) {
 
 						if ( ele.attributes.format === 'binary' ) {
 
-							if ( ! compressed ) {
-
-								txt = txt.filter( function ( el, idx ) {
-
-									if ( idx !== 0 ) return true;
-
-								} );
-
-							}
-
 							txt = txt.filter( function ( el, idx ) {
 
 								if ( idx % 2 !== 1 ) return true;