summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNikolaus Gullotta <nikolaus.gullotta@gmail.com>2018-06-01 11:25:46 -0500
committerNikolaus Gullotta <nikolaus.gullotta@gmail.com>2018-06-01 11:25:46 -0500
commit820cbc8c4f79769d43e56f06ab79c92ce6d2363a (patch)
tree9be259767af5bde8317bfe35bb1d1dcb6a3a783a /scripts
parent29aba34d1cea4aef02f5cec7ec9939c4f6a5f8ab (diff)
forgot else in selected-tracks check.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/meter_tap.lua17
1 files changed, 9 insertions, 8 deletions
diff --git a/scripts/meter_tap.lua b/scripts/meter_tap.lua
index 925fe373af..c2fa204f9a 100644
--- a/scripts/meter_tap.lua
+++ b/scripts/meter_tap.lua
@@ -32,17 +32,18 @@ function factory () return function ()
end
end
end
- end
-
- for route in Session:get_routes():iter() do
- if not(route:to_track():isnil()) then
- if rv['rec-tracks'] then
- if route:rec_enable_control():get_value() == 1.0 then
+ else
+ for route in Session:get_routes():iter() do
+ if not(route:to_track():isnil()) then
+ if rv['rec-tracks'] then
+ if route:rec_enable_control():get_value() == 1.0 then
+ route:to_track():set_meter_point(meter_point, false)
+ end
+ else
route:to_track():set_meter_point(meter_point, false)
end
- else
- route:to_track():set_meter_point(meter_point, false)
end
end
end
+
end end