diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-06-13 11:40:12 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-06-13 11:40:12 +0200 |
| commit | 0d279c61665e74f47aaa9a13b81f0a00692c5e8c (patch) | |
| tree | e11dd5dbc0bcf5526a085670c643713b994e0bbd /crop-tool | |
| parent | 440808a5ad98bdcd4024a2e0f552d83dfa21c5d2 (diff) | |
a
Diffstat (limited to 'crop-tool')
| -rw-r--r-- | crop-tool/crop-tool.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crop-tool/crop-tool.cpp b/crop-tool/crop-tool.cpp index c0bf9265..adb2772c 100644 --- a/crop-tool/crop-tool.cpp +++ b/crop-tool/crop-tool.cpp @@ -265,16 +265,16 @@ int main(int argc, char** argv) return usage(args); } - for (anim_atlas atlas; - anim_group& group : anim_info.groups) - { + anim_atlas atlas; + + for (anim_group& group : anim_info.groups) if (!load_directory(group, opts, atlas, opts.input_dir/group.name)) return EX_DATAERR; - if (!atlas.dump(opts.output_dir/(anim_info.name + ".png"))) - return EX_CANTCREAT; - if (!anim_info.to_json(opts.output_dir/(anim_info.name + ".json"))) - return EX_CANTCREAT; - } + + if (!atlas.dump(opts.output_dir/(anim_info.name + ".png"))) + return EX_CANTCREAT; + if (!anim_info.to_json(opts.output_dir/(anim_info.name + ".json"))) + return EX_CANTCREAT; return 0; } |
