moved PanelManager to a more traditional singleton form
This commit is contained in:
@@ -40,9 +40,9 @@ void Sequence::Open(SequencePtr sequence)
|
||||
{
|
||||
// FIXME: This is fairly "hardcoded" behavior and doesn't support infinite panels
|
||||
|
||||
ViewerPanel* viewer_panel = olive::panel_manager->MostRecentlyFocused<ViewerPanel>();
|
||||
TimelinePanel* timeline_panel = olive::panel_manager->MostRecentlyFocused<TimelinePanel>();
|
||||
NodePanel* node_panel = olive::panel_manager->MostRecentlyFocused<NodePanel>();
|
||||
ViewerPanel* viewer_panel = PanelManager::instance()->MostRecentlyFocused<ViewerPanel>();
|
||||
TimelinePanel* timeline_panel = PanelManager::instance()->MostRecentlyFocused<TimelinePanel>();
|
||||
NodePanel* node_panel = PanelManager::instance()->MostRecentlyFocused<NodePanel>();
|
||||
|
||||
viewer_panel->ConnectViewerNode(sequence->viewer_output_);
|
||||
timeline_panel->ConnectTimelineNode(sequence->timeline_output_);
|
||||
|
||||
Reference in New Issue
Block a user