noise-tool: correct single octave difference

This commit is contained in:
Danny Robson 2015-06-17 03:09:22 +10:00
parent 7b9a01c790
commit eeeb8977ec

View File

@ -293,6 +293,7 @@ main (int argc, char **argv)
// inefficient, but it's not an operation we care about in general.
if (single && f.octaves () != 1) {
auto oldoctaves = f.octaves ();
f.octaves (oldoctaves - 1);
auto prev = img.clone ();
for (size_t y = 0; y < res.h; ++y)