Closed adamkewley closed 1 year ago
Because, otherwise, there's code redundancy (e.g. in the model editor):
m_PanelManager->registerSpawnablePanel( "viewer", [this](std::string_view panelName) { return std::make_shared<ModelEditorViewerPanel>(panelName, m_Parent, this, m_Model); } ); m_PanelManager->pushDynamicPanel( "viewer", std::make_shared<ModelEditorViewerPanel>( m_PanelManager->computeSuggestedDynamicPanelName("viewer"), m_Parent, this, m_Model ) );
Because, otherwise, there's code redundancy (e.g. in the model editor):