From e5685b0909801ffc17601b56ece8722f31a381cd Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sun, 15 May 2022 21:27:34 -0400 Subject: [PATCH] fix "soft"'s special weirdness --- include/light/light.hh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/light/light.hh b/include/light/light.hh index 4462d186..448af33d 100644 --- a/include/light/light.hh +++ b/include/light/light.hh @@ -334,7 +334,7 @@ public: bool parse(const std::string &settingName, parser_base_t &parser, bool locked = false) override { - if (!parser.parse_token()) { + if (!parser.parse_token(PARSE_PEEK)) { return false; } @@ -343,6 +343,8 @@ public: setValueFromParse(f, locked); + parser.parse_token(); + return true; } catch (std::exception &) { @@ -396,7 +398,7 @@ public: setting_vec3 debugvert{this, "debugvert", std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN(), &debug_group, ""}; setting_bool highlightseams{this, "highlightseams", false, &debug_group, ""}; - setting_soft soft{this, "soft", 0, 0, std::numeric_limits::max(), &postprocessing_group, + setting_soft soft{this, "soft", 0, -1, std::numeric_limits::max(), &postprocessing_group, "blurs the lightmap. specify n to blur radius in samples, otherwise auto"}; setting_string radlights{this, "radlights", "", "\"filename.rad\"", &experimental_group, "loads a file"};