From d102f020288c844d24b8e0edd550eb4489ba5f74 Mon Sep 17 00:00:00 2001 From: Joseph Cloutier Date: Sun, 10 May 2020 19:21:32 -0400 Subject: [PATCH] Only process animation nodes that have data. --- away3d/loaders/parsers/DAEParser.hx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/away3d/loaders/parsers/DAEParser.hx b/away3d/loaders/parsers/DAEParser.hx index 8ef1796e..2ee5f596 100644 --- a/away3d/loaders/parsers/DAEParser.hx +++ b/away3d/loaders/parsers/DAEParser.hx @@ -239,6 +239,13 @@ class DAEParser extends ParserBase for(childAnimation in animationArray[i].nodes.animation) { animationArray.push(childAnimation); } + + //Often, parent nodes will contain no animation data of their own, + //meaning there's no need to make a DAEAnimation for them. + if(!animationArray[i].hasNode.source) { + animationArray.splice(i, 1); + i--; + } } i++;