diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/meter_tap.lua | 17 |
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 |