13
0

use PresentationInfo API to mark Stripable elements hidden (from editor)

This commit is contained in:
Paul Davis 2016-06-05 16:09:47 -04:00
parent b85911d252
commit 23f29a89ce

View File

@ -1012,13 +1012,7 @@ EditorRoutes::sync_presentation_info_from_treeview ()
continue;
}
if (!visible) {
stripable->presentation_info().set_flag (PresentationInfo::Hidden);
} else {
stripable->presentation_info().unset_flag (PresentationInfo::Hidden);
}
cerr << "Would change PI go for " << stripable->name() << " to " << order << " currently " << stripable->presentation_info().order() << endl;
stripable->presentation_info().set_hidden (!visible);
if (order != stripable->presentation_info().order()) {
stripable->set_presentation_order_explicit (order);