mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-12 03:10:17 +01:00
allow display modes to fallback to other display modes before default
This commit is contained in:
@@ -86,7 +86,13 @@ class OscInput(object):
|
||||
|
||||
def run_action_for_osc_channel(self, channel, param_value=None):
|
||||
this_mapping = self.osc_mappings[channel]
|
||||
if self.data.control_mode in this_mapping:
|
||||
if type(self.data.control_mode) is list:
|
||||
mode = 'DEFAULT'
|
||||
for cm in self.data.control_mode:
|
||||
if cm in this_mapping:
|
||||
mode = cm
|
||||
break
|
||||
elif self.data.control_mode in this_mapping:
|
||||
mode = self.data.control_mode
|
||||
elif 'DEFAULT' in this_mapping:
|
||||
mode = 'DEFAULT'
|
||||
|
||||
Reference in New Issue
Block a user