mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Add support to load only the first frame of the animation (used in file selector's preview).
This commit is contained in:
parent
36e605bdf2
commit
749ff05ef7
@ -306,6 +306,13 @@ bool GifFormat::onLoad(FileOp* fop)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// Just one frame?
|
||||
if (frame_num > 0 && fop->oneframe)
|
||||
break;
|
||||
|
||||
if (fop_is_stop(fop))
|
||||
break;
|
||||
} while (record_type != TERMINATE_RECORD_TYPE);
|
||||
}
|
||||
catch (...) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user