From 614fe8b301910e69252542aa64aa6623be22664b Mon Sep 17 00:00:00 2001 From: Felix Herbst Date: Mon, 27 Mar 2023 20:39:36 +0200 Subject: [PATCH] remove duplicate switch entries --- examples/jsm/exporters/GLTFExporter.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/examples/jsm/exporters/GLTFExporter.js b/examples/jsm/exporters/GLTFExporter.js index 1a0c5850bde796..35b4c0371a2941 100644 --- a/examples/jsm/exporters/GLTFExporter.js +++ b/examples/jsm/exporters/GLTFExporter.js @@ -1015,10 +1015,6 @@ class GLTFWriter { dataView.setUint8( offset, value ); - } else if ( componentType === WEBGL_CONSTANTS.BYTE ) { - - dataView.setInt8( offset, value ); - } offset += componentSize; @@ -1149,10 +1145,6 @@ class GLTFWriter { componentType = WEBGL_CONSTANTS.UNSIGNED_BYTE; - } else if ( attribute.array.constructor === Int8Array ) { - - componentType = WEBGL_CONSTANTS.BYTE; - } else { throw new Error( 'THREE.GLTFExporter: Unsupported bufferAttribute component type: ' + attribute.array.constructor );