Skip to content

Commit 59bdf39

Browse files
lpanafCopilot
andauthored
Update glomap/io/colmap_converter.cc
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 43423ae commit 59bdf39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glomap/io/colmap_converter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ void ConvertDatabaseToGlomap(const colmap::Database& database,
309309
for (const auto& [camera_id, camera] : cameras) {
310310
if (cameras_id_to_rig_id.find(camera_id) == cameras_id_to_rig_id.end()) {
311311
Rig rig;
312-
if (max_rig_id != 0)
312+
if (max_rig_id > 0)
313313
rig.SetRigId(++max_rig_id);
314314
else
315315
rig.SetRigId(camera_id);

0 commit comments

Comments
 (0)