Animation Editor: Removing all layouts causes the Animation Editor to be unusable

Making the anim graph layout the default layout, cannot be removed from the menu.
This commit is contained in:
rhhong
2021-04-21 11:19:13 -07:00
parent 9ca29b5f33
commit e05b7d5bb5
@@ -1866,6 +1866,12 @@ namespace EMStudio
// add each layout in the remove menu
for (uint32 i = 0; i < numLayoutNames; ++i)
{
// User cannot remove the default layout. This layout is referenced in the qrc file, removing it will
// cause compiling issue too.
if (mLayoutNames[i] == "AnimGraph")
{
continue;
}
QAction* action = removeMenu->addAction(mLayoutNames[i].c_str());
connect(action, &QAction::triggered, this, &MainWindow::OnRemoveLayout);
}