1
0
Fork 0
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:
fgenesis 2016-05-05 03:52:22 +02:00
parent 276265be1d
commit b2a0694281

View file

@ -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;