Fix 8th knob

This commit is contained in:
dterrahe
2023-05-05 23:19:00 +01:00
committed by GitHub
parent 7ac37ddc1a
commit 4726821e7d

View File

@@ -67,16 +67,19 @@ for k = 1,8 do
return 0/0
end
-- first try if the mask slider at that position is active
local s = { "opacity",
"size",
"feather",
"hardness",
"rotation",
"curvature",
"compression" }
local maskval = dt.gui.action("lib/masks/properties/" .. s[k],
element, effect, size)
local maskval = 0/0
if k < 8 then
-- first try if the mask slider at that position is active
local s = { "opacity",
"size",
"feather",
"hardness",
"rotation",
"curvature",
"compression" }
maskval = dt.gui.action("lib/masks/properties/" .. s[k],
element, effect, size)
end
-- if a value different from NAN is returned, the slider was active
if maskval == maskval then
return maskval