Change default file names to save a sequence of images

This commit is contained in:
David Capello 2014-11-09 20:01:34 -03:00
parent 91bd84f681
commit f1165ec3bc

View File

@ -370,11 +370,8 @@ FileOp* fop_to_save_document(Context* context, Document* document)
start_from = split_filename(fop->document->filename().c_str(), left, right, &width); start_from = split_filename(fop->document->filename().c_str(), left, right, &width);
if (start_from < 0) { if (start_from < 0) {
start_from = 0; start_from = 1;
width = width = 1;
(fop->document->sprite()->totalFrames() < 10)? 1:
(fop->document->sprite()->totalFrames() < 100)? 2:
(fop->document->sprite()->totalFrames() < 1000)? 3: 4;
} }
for (FrameNumber frame(0); frame<fop->document->sprite()->totalFrames(); ++frame) { for (FrameNumber frame(0); frame<fop->document->sprite()->totalFrames(); ++frame) {