Skip to content

Commit 4726821

Browse files
authored
Fix 8th knob
1 parent 7ac37dd commit 4726821

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

examples/x-touch.lua

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,19 @@ for k = 1,8 do
6767
return 0/0
6868
end
6969

70-
-- first try if the mask slider at that position is active
71-
local s = { "opacity",
72-
"size",
73-
"feather",
74-
"hardness",
75-
"rotation",
76-
"curvature",
77-
"compression" }
78-
local maskval = dt.gui.action("lib/masks/properties/" .. s[k],
79-
element, effect, size)
70+
local maskval = 0/0
71+
if k < 8 then
72+
-- first try if the mask slider at that position is active
73+
local s = { "opacity",
74+
"size",
75+
"feather",
76+
"hardness",
77+
"rotation",
78+
"curvature",
79+
"compression" }
80+
maskval = dt.gui.action("lib/masks/properties/" .. s[k],
81+
element, effect, size)
82+
end
8083
-- if a value different from NAN is returned, the slider was active
8184
if maskval == maskval then
8285
return maskval

0 commit comments

Comments
 (0)