Catch landmark duplicate error during merge

pull/1426/head
Piero Toffanin 2022-03-03 10:35:29 -05:00
rodzic 07be35270f
commit e65afba7b6
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -88,8 +88,12 @@ class OSFMContext:
merged.add_camera(camera)
for point in rec.points.values():
new_point = merged.create_point(point.id, point.coordinates)
new_point.color = point.color
try:
new_point = merged.create_point(point.id, point.coordinates)
new_point.color = point.color
except RuntimeError as e:
log.ODM_WARNING("Cannot merge shot id %s (%s)" % (shot.id, str(e)))
continue
for shot in rec.shots.values():
merged.add_shot(shot)