Skip to content

Commit

Permalink
Merge pull request #33 from ch-sa/ch/fix-save-perspective
Browse files Browse the repository at this point in the history
Fix save perspective
  • Loading branch information
ch-sa authored Oct 31, 2021
2 parents 6c5b9b9 + 0319e26 commit 0469dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labelCloud/control/pcd_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def save_labels_into_file(self, bboxes: List[BBox]) -> None:
print("No point clouds to save labels for!")

def save_current_perspective(self, active: bool = True) -> None:
if active:
if active and self.point_cloud:
self.saved_perspective = Perspective(
zoom=self.pointcloud.trans_z,
rotation=tuple(self.pointcloud.get_rotations()),
Expand Down

0 comments on commit 0469dae

Please sign in to comment.