mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-02 12:32:40 +02:00
Close the preview dialogue when the model throws an exception
This commit is contained in:
@@ -36,6 +36,7 @@ void PreviewController::Update()
|
|||||||
}
|
}
|
||||||
catch (PreviewModelException & e)
|
catch (PreviewModelException & e)
|
||||||
{
|
{
|
||||||
|
Exit();
|
||||||
new ErrorMessage("Error", e.what());
|
new ErrorMessage("Error", e.what());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user