Create ghost regions when automation tracks are added, as well as on session reload...
authorCarl Hetherington <carl@carlh.net>
Sat, 26 Feb 2011 23:48:43 +0000 (23:48 +0000)
committerCarl Hetherington <carl@carlh.net>
Sat, 26 Feb 2011 23:48:43 +0000 (23:48 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8973 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/midi_time_axis.cc
gtk2_ardour/route_time_axis.cc

index f85a006c4fdf81dcb2b6239252e51d760c341214..d08e40b8ef7779760ff9a2fa8b55105b4369dc25 100644 (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);
        }
index 1730725fe74f38c8975bf18f6146d22ea6a28b56..0429fd75f948f4f10af828666a01bdf4e5688842 100644 (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);
 }