Skip to content

Commit

Permalink
Merge pull request #19456 from Mugen87/dev49
Browse files Browse the repository at this point in the history
GLTFExporter: Clean up.
  • Loading branch information
Mugen87 committed May 25, 2020
2 parents 5d4d25b + 1969817 commit 9db3d4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/js/exporters/GLTFExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,9 @@ THREE.GLTFExporter.prototype = {
} else {

if ( a === 0 ) value = attribute.getX( i );
if ( a === 1 ) value = attribute.getY( i );
if ( a === 2 ) value = attribute.getZ( i );
if ( a === 3 ) value = attribute.getW( i );
else if ( a === 1 ) value = attribute.getY( i );
else if ( a === 2 ) value = attribute.getZ( i );
else if ( a === 3 ) value = attribute.getW( i );

}

Expand Down
6 changes: 3 additions & 3 deletions examples/jsm/exporters/GLTFExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,9 @@ GLTFExporter.prototype = {
} else {

if ( a === 0 ) value = attribute.getX( i );
if ( a === 1 ) value = attribute.getY( i );
if ( a === 2 ) value = attribute.getZ( i );
if ( a === 3 ) value = attribute.getW( i );
else if ( a === 1 ) value = attribute.getY( i );
else if ( a === 2 ) value = attribute.getZ( i );
else if ( a === 3 ) value = attribute.getW( i );

}

Expand Down

0 comments on commit 9db3d4f

Please sign in to comment.