diff --git a/lib/addDefaults.js b/lib/addDefaults.js index 3e506fd2..0cbb6dca 100644 --- a/lib/addDefaults.js +++ b/lib/addDefaults.js @@ -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; } }); });