mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-05 09:40:02 +00:00
Removed the usage of "link" frames when load a sequence of bitmaps.
This commit is contained in:
parent
13cbec9ec0
commit
1c3cba7208
@ -184,7 +184,7 @@ Sprite *sprite_load(const char *filename)
|
||||
|
||||
file = get_filetype (extension);
|
||||
if ((!file) || (!file->load)) {
|
||||
console_printf (_("Load file type \"%s\" isn't supported\n"), extension);
|
||||
console_printf(_("Format \"%s\" isn't supported to open\n"), extension);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -318,6 +318,7 @@ Sprite *sprite_load(const char *filename)
|
||||
}
|
||||
|
||||
/* compare the old frame with the new one */
|
||||
#if USE_LINK /* TODO this should be configurable through a check-box */
|
||||
if (image_count_diff(old_image, file_sequence.last_image)) {
|
||||
SEQUENCE_IMAGE();
|
||||
}
|
||||
@ -333,6 +334,9 @@ Sprite *sprite_load(const char *filename)
|
||||
file_sequence.last_image = NULL;
|
||||
file_sequence.last_frame = NULL;
|
||||
}
|
||||
#else
|
||||
SEQUENCE_IMAGE();
|
||||
#endif
|
||||
}
|
||||
|
||||
c++;
|
||||
@ -399,7 +403,7 @@ int sprite_save(Sprite *sprite)
|
||||
|
||||
file = get_filetype(extension);
|
||||
if ((!file) || (!file->save)) {
|
||||
console_printf (_("Save file type \"%s\" isn't supported\n"), extension);
|
||||
console_printf (_("Format \"%s\" isn't supported to save\n"), extension);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -491,11 +495,11 @@ int sprite_save(Sprite *sprite)
|
||||
if (ugetc(buf)) {
|
||||
if (is_interactive()) {
|
||||
if (fatal)
|
||||
ret = jalert(_("Error<<File type \"%s\" doesn't support:%s"
|
||||
ret = jalert(_("Error<<File format \"%s\" doesn't support:%s"
|
||||
"||&Close"),
|
||||
file->name, buf);
|
||||
else
|
||||
ret = jalert(_("Warning<<File type \"%s\" doesn't support:%s"
|
||||
ret = jalert(_("Warning<<File format \"%s\" doesn't support:%s"
|
||||
"<<Do you want continue?"
|
||||
"||&Yes||&No"),
|
||||
file->name, buf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user