Skip to content

Commit

Permalink
GLTFExporter: Fixed accessor reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Feb 11, 2021
1 parent ec77181 commit 9d8ed27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/js/exporters/GLTFExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ THREE.GLTFExporter = ( function () {

};

if ( attribute.normalized === true ) gltfAccessor.normalized = true;
if ( attribute.normalized === true ) accessorDef.normalized = true;
if ( ! json.accessors ) json.accessors = [];

return json.accessors.push( accessorDef ) - 1;
Expand Down
2 changes: 1 addition & 1 deletion examples/jsm/exporters/GLTFExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ var GLTFExporter = ( function () {

};

if ( attribute.normalized === true ) gltfAccessor.normalized = true;
if ( attribute.normalized === true ) accessorDef.normalized = true;
if ( ! json.accessors ) json.accessors = [];

return json.accessors.push( accessorDef ) - 1;
Expand Down

0 comments on commit 9d8ed27

Please sign in to comment.