mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
Fix ATAV identification by Parameter (2/2) #8201, 8203
Allow to uniquely identify Processor ATAV using the control ID.
This commit is contained in:
parent
0ab13e7b29
commit
54ffd92fde
5 changed files with 28 additions and 11 deletions
|
|
@ -2749,6 +2749,23 @@ RouteTimeAxisView::remove_child (boost::shared_ptr<TimeAxisView> c)
|
|||
}
|
||||
}
|
||||
|
||||
boost::shared_ptr<AutomationTimeAxisView>
|
||||
RouteTimeAxisView::automation_child(Evoral::Parameter param, PBD::ID ctrl_id)
|
||||
{
|
||||
if (param.type() != PluginAutomation) {
|
||||
return StripableTimeAxisView::automation_child (param, ctrl_id);
|
||||
}
|
||||
for (list<ProcessorAutomationInfo*>::iterator i = processor_automation.begin(); i != processor_automation.end(); ++i) {
|
||||
for (vector<ProcessorAutomationNode*>::iterator ii = (*i)->lines.begin(); ii != (*i)->lines.end(); ++ii) {
|
||||
boost::shared_ptr<AutomationTimeAxisView> atv ((*ii)->view);
|
||||
if (atv->control()->id() == ctrl_id) {
|
||||
return atv;
|
||||
}
|
||||
}
|
||||
}
|
||||
return boost::shared_ptr<AutomationTimeAxisView>();
|
||||
}
|
||||
|
||||
boost::shared_ptr<AutomationLine>
|
||||
RouteTimeAxisView::automation_child_by_alist_id (PBD::ID alist_id)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue