1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-01-24 17:26:41 +00:00

support scaling bones in anim editor

This commit is contained in:
fgenesis 2023-10-18 02:16:14 +02:00
parent 7cd8f51b47
commit 56b3439d12

View file

@ -774,6 +774,21 @@ void AnimationEditor::update(float dt)
}
}
if (editingBone)
{
float m = 0.2f;
if(core->getKeyState(KEY_NUMPADSLASH))
{
editingBone->originalScale /= (1 + m*dt);
editingBone->scale = editingBone->originalScale;
}
if(core->getKeyState(KEY_NUMPADSTAR))
{
editingBone->originalScale *= (1 + m*dt);
editingBone->scale = editingBone->originalScale;
}
}
if (editingBone && boneEdit == 1 && !splinegrid)
{
Vector add = core->mouse.change;