diff --git a/invesalius/data/slice_.py b/invesalius/data/slice_.py index de156bc..61bda5e 100644 --- a/invesalius/data/slice_.py +++ b/invesalius/data/slice_.py @@ -932,7 +932,14 @@ class Slice(object): self.nodes = pubsub_evt.data self.from_= WIDGET for buffer_ in self.buffer_slices.values(): - buffer_.discard_vtk_image() + if self._type_projection in (const.PROJECTION_NORMAL, + const.PROJECTION_MaxIP, + const.PROJECTION_MinIP, + const.PROJECTION_MeanIP, + const.PROJECTION_LMIP): + buffer_.discard_vtk_image() + else: + buffer_.discard_buffer() knodes = sorted(self.nodes) p0 = knodes[0].value -- libgit2 0.21.2