Skip to content

Commit

Permalink
Merge pull request #1441 from ergoxiv/hotfix/bone-parenting-off-fixes
Browse files Browse the repository at this point in the history
Fixed issue preventing child bones from updating transforms when parenting is off
  • Loading branch information
StoiaCode authored Feb 2, 2025
2 parents f546e2d + f2a0c8f commit e5797e9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Anamnesis/Core/Bone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,18 @@ public virtual void WriteTransform(bool writeChildren = true, bool writeLinked =
}
}

if (writeChildren && PoseService.Instance.EnableParenting)
if (writeChildren)
{
foreach (var child in currentBone.Children)
{
bonesToProcess.Push((child, currentWriteLinked));
if (PoseService.Instance.EnableParenting)
{
bonesToProcess.Push((child, currentWriteLinked));
}
else
{
child.ReadTransform(true);
}
}
}
}
Expand Down

0 comments on commit e5797e9

Please sign in to comment.