Advanced settings noiseparams: No tailing comma for empty flags

Previously, when editing noiseparams and disabling all the noise
flags, the noiseparam is displyed in advanced settings with a
tailing comma.
This commit is contained in:
srfqi 2019-01-10 18:56:48 +01:00 committed by Nils Dagsson Moskopp
parent 289186639f
commit d808652180
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 4 additions and 2 deletions

View File

@ -522,8 +522,10 @@ local function get_current_np_group_as_string(setting)
value.seed .. ", " .. value.seed .. ", " ..
value.octaves .. ", " .. value.octaves .. ", " ..
value.persistence .. ", " .. value.persistence .. ", " ..
value.lacunarity .. ", " .. value.lacunarity
value.flags if value.flags ~= "" then
t = t .. ", " .. value.flags
end
end end
return t return t
end end