Commit 05b7be5184c41eb4133cc570cf02a1acc3f14736
1 parent
dd85894b
Exists in
master
Using original orientation when setting camera positions
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
invesalius/data/viewer_slice.py
@@ -1534,8 +1534,8 @@ class Viewer(wx.Panel): | @@ -1534,8 +1534,8 @@ class Viewer(wx.Panel): | ||
1534 | orig_orien = proj.original_orientation | 1534 | orig_orien = proj.original_orientation |
1535 | 1535 | ||
1536 | self.cam.SetFocalPoint(0, 0, 0) | 1536 | self.cam.SetFocalPoint(0, 0, 0) |
1537 | - self.cam.SetViewUp(const.SLICE_POSITION[const.AXIAL][0][self.orientation]) | ||
1538 | - self.cam.SetPosition(const.SLICE_POSITION[const.AXIAL][1][self.orientation]) | 1537 | + self.cam.SetViewUp(const.SLICE_POSITION[orig_orien][0][self.orientation]) |
1538 | + self.cam.SetPosition(const.SLICE_POSITION[orig_orien][1][self.orientation]) | ||
1539 | #self.cam.ComputeViewPlaneNormal() | 1539 | #self.cam.ComputeViewPlaneNormal() |
1540 | #self.cam.OrthogonalizeViewUp() | 1540 | #self.cam.OrthogonalizeViewUp() |
1541 | self.cam.ParallelProjectionOn() | 1541 | self.cam.ParallelProjectionOn() |