From e122410f82f265186606c7e707e4e54efe1e7d9e Mon Sep 17 00:00:00 2001 From: Sean Lilley Date: Tue, 20 Mar 2018 09:41:53 -0400 Subject: [PATCH] Rename node to nodeId --- lib/addDefaults.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/addDefaults.js b/lib/addDefaults.js index 8c5943fc..a3e8c7be 100644 --- a/lib/addDefaults.js +++ b/lib/addDefaults.js @@ -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; } }); });