1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-29 12:15:18 +01:00

Make getting bone overrides return the "same" euler angles (#15007)

This commit is contained in:
Lars Müller
2024-08-26 21:22:38 +02:00
committed by GitHub
parent 5583831c40
commit 21ed680b10
3 changed files with 37 additions and 10 deletions

View File

@@ -96,6 +96,9 @@ struct BoneOverride
{
core::quaternion previous;
core::quaternion next;
// Redundantly store the euler angles serverside
// so that we can return them in the appropriate getters
v3f next_radians;
bool absolute = false;
f32 interp_timer = 0;
} rotation;