From 565570f905be11faa17c1c95c7ac207c641c395d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 11 Jun 2022 19:17:13 +0000 Subject: a --- crop-tool/crop-tool.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crop-tool/crop-tool.cpp b/crop-tool/crop-tool.cpp index 8208688e..c0bf9265 100644 --- a/crop-tool/crop-tool.cpp +++ b/crop-tool/crop-tool.cpp @@ -139,6 +139,12 @@ static bool load_directory(anim_group& group, options& opts, anim_atlas& atlas, break; } + if (max == 1) + { + Error{Error::Flag::NoSpace} << "no files in directory " << input_dir << "!"; + return false; + } + if (!opts.nframes) opts.nframes = max-1; else if (opts.nframes != max-1) -- cgit v1.2.3