mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-25 09:44:02 +00:00
Very tiny cleanup
This commit is contained in:
parent
276265be1d
commit
b2a0694281
1 changed files with 3 additions and 3 deletions
|
@ -618,11 +618,11 @@ void AnimationEditor::rebuildKeyframeWidgets()
|
|||
offx = keyframeWidgets[i]->offset.x;
|
||||
}
|
||||
keyframeWidgets.clear();
|
||||
for (int i = 0; i < 1000; i++)
|
||||
if (Animation *a = editSprite->getCurrentAnimation())
|
||||
{
|
||||
if (editSprite->getCurrentAnimation())
|
||||
for (int i = 0; i < 1000; i++)
|
||||
{
|
||||
SkeletalKeyframe *key = editSprite->getCurrentAnimation()->getKeyframe(i);
|
||||
SkeletalKeyframe *key = a->getKeyframe(i);
|
||||
if (!key) break;
|
||||
KeyframeWidget *k = new KeyframeWidget(i);
|
||||
k->offset.x = offx;
|
||||
|
|
Loading…
Reference in a new issue