Commit 57b0d8f611bb8c5059cedc3babf54bd09dd6d2d5
1 parent
81df13a7
Exists in
master
and in
68 other branches
FIX: Bug if created surface fisrt
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
invesalius/data/viewer_volume.py
... | ... | @@ -110,9 +110,9 @@ class Viewer(wx.Panel): |
110 | 110 | ren = self.ren |
111 | 111 | ren.AddActor(actor) |
112 | 112 | |
113 | - if not (self.first_reposition_actor): | |
114 | - self.RepositionActor() | |
115 | - self.first_reposition_actor = 1 | |
113 | + if not (self.view_angle): | |
114 | + self.SetViewAngle(const.VOL_FRONT) | |
115 | + self.view_angle = 1 | |
116 | 116 | else: |
117 | 117 | ren.ResetCamera() |
118 | 118 | ren.ResetCameraClippingRange() | ... | ... |