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:
parent
7cd8f51b47
commit
56b3439d12
1 changed files with 15 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue