Bug fixes

- Fixed bug which cause body to skip around when body offsets were set
- Fixed bug where genital rotations were absolute rather than relative to body orientation
This commit is contained in:
AbstractConcept 2022-09-27 18:29:08 -05:00
parent 0e653f863a
commit 61c6c949d3
70 changed files with 26 additions and 21 deletions

View file

@ -59,8 +59,8 @@ namespace RimWorldAnimationStudio
if (Workspace.actorManipulationMode == ActorManipulationMode.Pan)
{
keyframe.bodyOffsetX = mousePosition.x - delta.x - Workspace.animationDef.actors[actorID].GetAlienRaceOffset().x;
keyframe.bodyOffsetZ = mousePosition.y - delta.y - Workspace.animationDef.actors[actorID].GetAlienRaceOffset().z;
keyframe.bodyOffsetX = mousePosition.x - delta.x - Workspace.animationDef.actors[actorID].GetFinalTransformOffset().x;
keyframe.bodyOffsetZ = mousePosition.y - delta.y - Workspace.animationDef.actors[actorID].GetFinalTransformOffset().y;
}
else if (Workspace.actorManipulationMode == ActorManipulationMode.Rotate)