Skip to content
Snippets Groups Projects
Commit 89190cf8 authored by Jeongseok Lee's avatar Jeongseok Lee
Browse files

Fix incorrect state check in BVHModel::addVertex(~)

parent 75e6f18d
No related branches found
No related tags found
No related merge requests found
...@@ -160,7 +160,7 @@ int BVHModel<BV>::beginModel(int num_tris_, int num_vertices_) ...@@ -160,7 +160,7 @@ int BVHModel<BV>::beginModel(int num_tris_, int num_vertices_)
template<typename BV> template<typename BV>
int BVHModel<BV>::addVertex(const Vec3f& p) int BVHModel<BV>::addVertex(const Vec3f& p)
{ {
if(build_state != BVH_BUILD_STATE_UPDATE_BEGUN) if(build_state != BVH_BUILD_STATE_BEGUN)
{ {
std::cerr << "BVH Warning! Call addVertex() in a wrong order. addVertex() was ignored. Must do a beginModel() to clear the model for addition of new vertices." << std::endl; std::cerr << "BVH Warning! Call addVertex() in a wrong order. addVertex() was ignored. Must do a beginModel() to clear the model for addition of new vertices." << std::endl;
return BVH_ERR_BUILD_OUT_OF_SEQUENCE; return BVH_ERR_BUILD_OUT_OF_SEQUENCE;
......
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