embeddings:: reset view option in menu to fix errors

This commit is contained in:
Zeno Rogue 2023-02-05 10:44:36 +01:00
parent b89ba69fd9
commit 23e4f90685
1 changed files with 8 additions and 0 deletions

View File

@ -2332,6 +2332,14 @@ EX void show_spatial_embedding() {
}
}
dialog::addSelItem(XLAT("reset view"), embedded_plane && isize(current_display->radarpoints) == 0 ? XLAT("(fix errors)") : !cells_drawn ? XLAT("(fix errors)") : "", ' ');
dialog::add_action([] {
if(rug::rug_control())
rug::reset_view();
else
fullcenter();
});
dialog::addBreak(100);
dialog::addBack();