Skip to content

Commit

Permalink
fix(flatten): Don't let weights animation disqualify node from flatte…
Browse files Browse the repository at this point in the history
…n() (#1187)
  • Loading branch information
donmccurdy authored Dec 2, 2023
1 parent 1f1f90a commit 09ef8a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/functions/src/flatten.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ export function flatten(_options: FlattenOptions = FLATTEN_DEFAULTS): Transform
}
}

// (2) Mark animated nodes.
// (2) Mark nodes with TRS animation.
const animated = new Set<Node>();
for (const animation of root.listAnimations()) {
for (const channel of animation.listChannels()) {
const node = channel.getTargetNode();
if (node) {
if (node && channel.getTargetPath() !== 'weights') {
animated.add(node);
}
}
Expand Down

0 comments on commit 09ef8a1

Please sign in to comment.