animation: don't report success when no frames were added

Currently, the animation object will report success when assets are *found* in
the directory. When loading those assets, code will apply more checks to
determine if the assets are meant for the animation.
In case none of them are, we'll end up not adding any frames, so we
should not report a successful load.

This is like commit 741b545868 but for
animation objects instead of throbber objects.
This commit is contained in:
Ray Strode 2014-11-07 10:30:33 -08:00
parent 741b545868
commit 2ef12342b9

View file

@ -287,7 +287,7 @@ out:
}
free (entries);
return load_finished;
return (ply_array_get_size (animation->frames) > 0);
}
bool