Skip to content

Commit

Permalink
Merge pull request #1729 from alalek:fix_ovis_build
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Aug 23, 2018
2 parents 8014fda + 21f7139 commit 645ca12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ovis/src/meshes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ void createPointCloudMesh(const String& name, InputArray vertices, InputArray co
{
int color_type = colors.type();
CV_Assert(_app);
CV_CheckTypeEQ(vertices.type(), CV_32FC3, "")
CV_CheckTypeEQ(vertices.type(), CV_32FC3, "vertices type must be Vec3f");
CV_Assert(vertices.isContinuous());
if (!colors.empty())
CV_CheckType(color_type, color_type == CV_8UC3 || color_type == CV_8UC4);
CV_CheckType(color_type, color_type == CV_8UC3 || color_type == CV_8UC4, "unsupported type");

// material
MaterialPtr mat = MaterialManager::getSingleton().create(name, RESOURCEGROUP_NAME);
Expand Down

0 comments on commit 645ca12

Please sign in to comment.