Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ohayoyogi committed Oct 6, 2024
1 parent cc1604d commit cc6f0c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def export_dataset(self, context, dirpath: Path):
output_dir.mkdir(parents=True, exist_ok=True)

with open(cameras_file, 'w') as f_cam, open(images_file, 'w') as f_img, open(points_file, 'w') as f_points:
f_cam.write(f'# Camera list generated by blender-exporter-colmap')
f_img.write(f'# Image list generated by blender-exporter-colmap')
f_points.write(f'# 3D point list generated by blender-exporter-colmap')
f_cam.write(f'# Camera list generated by blender-exporter-colmap\n')
f_img.write(f'# Image list generated by blender-exporter-colmap\n')
f_points.write(f'# 3D point list generated by blender-exporter-colmap\n')

for idx, cam in enumerate(sorted(cameras, key=lambda x: x.name_full + ".jpg")):
filename = cam.name_full
Expand Down

0 comments on commit cc6f0c1

Please sign in to comment.