Skip to content
Snippets Groups Projects
Commit 3ef0b4e6 authored by ShadowNinja's avatar ShadowNinja
Browse files

Make camera clear error message if there's no error

parent 5659434d
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,8 @@ bool Camera::successfullyCreated(std::string &error_message)
error_message = "Failed to create the wielded item scene manager";
} else if (!m_wieldnode) {
error_message = "Failed to create the wielded item scene node";
} else {
error_message.clear();
}
return error_message.empty();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment