OSC: custom mode should turn temp mode off
[ardour.git] / libs / surfaces / osc / osc.cc
index 97fd70c51d44fea86e1fa64d94b58f7b440b66a2..95905df87b84f89cfb1cc4c672c07bf701d731b9 100644 (file)
@@ -1406,6 +1406,7 @@ OSC::_custom_mode (uint32_t state, lo_address addr)
                sur->custom_mode = set->custom_mode;
                sur->custom_strips = set->custom_strips;
        }
+       sur->temp_mode = TempOff;
        if (state > 0){
                if (sur->custom_strips.size () == 0) {
                        PBD::warning << "No custom strips set to enable" << endmsg;
@@ -1431,6 +1432,7 @@ OSC::_custom_mode (uint32_t state, lo_address addr)
        if (ls) {
                set->custom_mode = sur->custom_mode;
                set->strips = sur->strips;
+               set->temp_mode = sur->temp_mode;
        }
        return _set_bank (1, addr);
 }