Clear scripting map overlay when closing project

This commit is contained in:
Marcus Huderle 2020-05-13 16:16:51 -05:00
parent f172be5500
commit 23a20dd736

View file

@ -402,6 +402,7 @@ void MainWindow::on_action_Open_Project_triggered()
if (!dir.isEmpty()) {
if (this->editor && this->editor->project) {
Scripting::cb_ProjectClosed(this->editor->project->root);
this->ui->graphicsView_Map->overlay.clearItems();
}
porymapConfig.setRecentProject(dir);
if (!openProject(dir)) {