Commit 05b7be5184c41eb4133cc570cf02a1acc3f14736

Authored by Thiago Franco de Moraes
1 parent dd85894b

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 1534 orig_orien = proj.original_orientation
1535 1535  
1536 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 1539 #self.cam.ComputeViewPlaneNormal()
1540 1540 #self.cam.OrthogonalizeViewUp()
1541 1541 self.cam.ParallelProjectionOn()
... ...