Skip to content

Commit

Permalink
Rename node to nodeId
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse authored Mar 20, 2018
1 parent 6eb0f85 commit f2dce28
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 @@ -215,11 +215,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 f2dce28

Please sign in to comment.