Skip to content

Commit

Permalink
fix(gltf): fix parsing of khr_binary_extension in gltf 1.0 files
Browse files Browse the repository at this point in the history
  • Loading branch information
jailln committed Nov 9, 2022
1 parent 04122a8 commit 2bf9d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser/deprecated/LegacyGLTFLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ threeExamples.LegacyGLTFLoader = ( function () {

return _each( json.buffers, function ( buffer, name ) {

if ( name === BINARY_EXTENSION_BUFFER_NAME ) {
if ( name === BINARY_EXTENSION_BUFFER_NAME || name === EXTENSIONS.KHR_BINARY_GLTF) {

return extensions[ EXTENSIONS.KHR_BINARY_GLTF ].body;

Expand Down

0 comments on commit 2bf9d2d

Please sign in to comment.