mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-02 13:20:12 +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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Just one frame?
|
||||||
|
if (frame_num > 0 && fop->oneframe)
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (fop_is_stop(fop))
|
||||||
|
break;
|
||||||
} while (record_type != TERMINATE_RECORD_TYPE);
|
} while (record_type != TERMINATE_RECORD_TYPE);
|
||||||
}
|
}
|
||||||
catch (...) {
|
catch (...) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user