Skip to content

Commit

Permalink
Rename node to nodeId
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Mar 20, 2018
1 parent 2c42a0e commit e122410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/addDefaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ function getAnimatedNodes(gltf) {
ForEach.animation(gltf, function(animation) {
ForEach.animationChannel(animation, function(channel) {
var target = channel.target;
var node = target.node;
var nodeId = target.node;
var path = target.path;
// Ignore animations that target 'weights'
if (path === 'translation' || path === 'rotation' || path === 'scale') {
nodes[node] = true;
nodes[nodeId] = true;
}
});
});
Expand Down

0 comments on commit e122410

Please sign in to comment.