Skip to content

Commit

Permalink
Only process animation nodes that have data.
Browse files Browse the repository at this point in the history
  • Loading branch information
player-03 authored and jgranick committed Nov 10, 2020
1 parent 031c7fb commit d102f02
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions away3d/loaders/parsers/DAEParser.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit d102f02

Please sign in to comment.