mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
OSC: Plugin activate should detect no plugins
This commit is contained in:
parent
f3185032a0
commit
15fa89c8dd
1 changed files with 14 additions and 12 deletions
|
|
@ -4535,6 +4535,7 @@ OSC::sel_plugin_activate (float state, lo_message msg)
|
|||
return -1;
|
||||
}
|
||||
OSCSurface *sur = get_surface(get_address (msg));
|
||||
if (sur->plugins.size() > 0) {
|
||||
boost::shared_ptr<Stripable> s = sur->select;
|
||||
|
||||
boost::shared_ptr<Route> r = boost::dynamic_pointer_cast<Route> (s);
|
||||
|
|
@ -4553,6 +4554,7 @@ OSC::sel_plugin_activate (float state, lo_message msg)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
float_message ("/select/plugin/activate", 0, get_address (msg));
|
||||
PBD::warning << "OSC: Select has no Plugin." << endmsg;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue