From 4726821e7def774c398579b73c85fe0f02f66c3f Mon Sep 17 00:00:00 2001 From: dterrahe Date: Fri, 5 May 2023 23:19:00 +0100 Subject: [PATCH] Fix 8th knob --- examples/x-touch.lua | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/examples/x-touch.lua b/examples/x-touch.lua index c1020fa..7c5b998 100644 --- a/examples/x-touch.lua +++ b/examples/x-touch.lua @@ -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