Commit a51c022cad5d185903e8bcec1db1bfffe04bf53a
1 parent
5ffbac4d
Exists in
beta4
and in
1 other branch
FIX: It was not possible to export 2d slice screenshots
it was because of AttributeError related to renderer.
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
invesalius/data/viewer_slice.py
... | ... | @@ -1041,10 +1041,11 @@ class Viewer(wx.Panel): |
1041 | 1041 | writer.SetRenderWindow(renwin) |
1042 | 1042 | writer.Write() |
1043 | 1043 | else: |
1044 | + ren = self.slice_data.renderer | |
1044 | 1045 | #Use tiling to generate a large rendering. |
1045 | 1046 | image = vtk.vtkRenderLargeImage() |
1046 | - image.SetInput(self.ren) | |
1047 | - image.SetMagnification(2) | |
1047 | + image.SetInput(ren) | |
1048 | + image.SetMagnification(1) | |
1048 | 1049 | |
1049 | 1050 | image = image.GetOutput() |
1050 | 1051 | ... | ... |