Skip to content

Commit

Permalink
remove duplicate switch entries
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Mar 27, 2023
1 parent 84437a0 commit 614fe8b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions examples/jsm/exporters/GLTFExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1015,10 +1015,6 @@ class GLTFWriter {

dataView.setUint8( offset, value );

} else if ( componentType === WEBGL_CONSTANTS.BYTE ) {

dataView.setInt8( offset, value );

}

offset += componentSize;
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 614fe8b

Please sign in to comment.