Fix #8996 (show/hide VCAs from script)
This commit is contained in:
parent
64dc16a460
commit
7c6c6290ee
@ -5908,14 +5908,15 @@ Editor::hide_track_in_display (TimeAxisView* tv, bool apply_to_selection)
|
|||||||
i = j;
|
i = j;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (tv);
|
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (tv);
|
||||||
|
StripableTimeAxisView* stv = dynamic_cast<StripableTimeAxisView*> (tv);
|
||||||
|
|
||||||
if (rtv && current_mixer_strip && (rtv->route() == current_mixer_strip->route())) {
|
if (rtv && current_mixer_strip && (rtv->route() == current_mixer_strip->route())) {
|
||||||
/* this will hide the mixer strip */
|
/* this will hide the mixer strip */
|
||||||
set_selected_mixer_strip (*tv);
|
set_selected_mixer_strip (*tv);
|
||||||
}
|
}
|
||||||
if (rtv) {
|
if (stv) {
|
||||||
rtv->route()->presentation_info().set_hidden (true);
|
stv->stripable()->presentation_info().set_hidden (true);
|
||||||
/* TODO also handle Routegroups IFF (rg->is_hidden() && !rg->is_selection())
|
/* TODO also handle Routegroups IFF (rg->is_hidden() && !rg->is_selection())
|
||||||
* selection currently unconditionally hides due to above if() clause :(
|
* selection currently unconditionally hides due to above if() clause :(
|
||||||
*/
|
*/
|
||||||
@ -5929,10 +5930,11 @@ Editor::show_track_in_display (TimeAxisView* tv, bool move_into_view)
|
|||||||
if (!tv) {
|
if (!tv) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (tv);
|
StripableTimeAxisView* stv = dynamic_cast<StripableTimeAxisView*> (tv);
|
||||||
if (rtv) {
|
if (stv) {
|
||||||
rtv->route()->presentation_info().set_hidden (false);
|
stv->stripable()->presentation_info().set_hidden (false);
|
||||||
#if 0 // TODO see above
|
#if 0 // TODO see above
|
||||||
|
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (tv);
|
||||||
RouteGroup* rg = rtv->route ()->route_group ();
|
RouteGroup* rg = rtv->route ()->route_group ();
|
||||||
if (rg && rg->is_active () && rg->is_hidden () && !rg->is_select ()) {
|
if (rg && rg->is_active () && rg->is_hidden () && !rg->is_select ()) {
|
||||||
boost::shared_ptr<RouteList> rl (rg->route_list ());
|
boost::shared_ptr<RouteList> rl (rg->route_list ());
|
||||||
|
Loading…
Reference in New Issue
Block a user