Create ghost regions when automation tracks are added, as well as on session reload (#3801).

git-svn-id: svn://localhost/ardour2/branches/3.0@8973 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-02-26 23:48:43 +00:00
parent d74d488cd4
commit 8f7db269cb
2 changed files with 8 additions and 0 deletions

View File

@ -864,6 +864,10 @@ MidiTimeAxisView::create_automation_child (const Evoral::Parameter& param, bool
_route->describe_parameter(param)
)
);
if (_view) {
_view->foreach_regionview (sigc::mem_fun (*track.get(), &TimeAxisView::add_ghost));
}
add_automation_child (param, track, show);
}

View File

@ -2443,6 +2443,10 @@ RouteTimeAxisView::create_gain_automation_child (const Evoral::Parameter& param,
false,
parent_canvas,
_route->amp()->describe_parameter(param)));
if (_view) {
_view->foreach_regionview (sigc::mem_fun (*gain_track.get(), &TimeAxisView::add_ghost));
}
add_automation_child (Evoral::Parameter(GainAutomation), gain_track, show);
}