Skip to content

Commit

Permalink
Fixed Skeleton._sortBones() crash for bones with parents from other s…
Browse files Browse the repository at this point in the history
…keletons. (#12415)
  • Loading branch information
EvgenyRodygin committed Apr 20, 2022
1 parent 7694167 commit 152de45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/dev/core/src/Bones/skeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,8 @@ export class Skeleton implements IAnimatable {
visited[index] = true;

const bone = this.bones[index];
if (!bone) return;

if (bone._index === undefined) {
bone._index = index;
}
Expand Down

0 comments on commit 152de45

Please sign in to comment.