Skip to content

Commit 6eb9eff

Browse files
RodrigoDevRodrigoDev
authored andcommitted
adjust
1 parent 1c553f2 commit 6eb9eff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ int main()
1212
OpenModelModal modal;
1313
auto modelPath = modal.Draw();
1414

15+
if (modelPath == "")
16+
{
17+
std::cout << "Empty model to open" << std::endl;
18+
return 0;
19+
}
20+
1521
auto obj = Importer::Importer::Load(modelPath);
1622

1723
if (obj == nullptr)
1824
{
1925
std::cout << "Fail to open " << modelPath << std::endl;
20-
Window::Close();
2126
return 0;
2227
}
2328

0 commit comments

Comments
 (0)