From 964f3d73831c6e0c91afa230c161f8c6fcee5399 Mon Sep 17 00:00:00 2001 From: countywest Date: Fri, 28 Apr 2023 21:38:52 +0900 Subject: [PATCH] check Z_index correctly in ReadPly --- src/util/ply.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/ply.cc b/src/util/ply.cc index f28c04ded2..a743cd811b 100644 --- a/src/util/ply.cc +++ b/src/util/ply.cc @@ -204,7 +204,7 @@ std::vector ReadPly(const std::string& path) { const bool is_rgb_missing = (R_index == -1) || (G_index == -1) || (B_index == -1); - CHECK(X_index != -1 && Y_index != -1 && Z_index) + CHECK(X_index != -1 && Y_index != -1 && Z_index != -1) << "Invalid PLY file format: x, y, z properties missing"; points.reserve(num_vertices);