From d3118ec8181b416f01777b7e4a00cfcfb68005f5 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Mon, 16 Jun 2014 16:06:44 -0300 Subject: [PATCH] Not flushing buffer (it's not necessary) --- invesalius/data/styles.py | 3 --- 1 file changed, 0 insertions(+), 3 deletions(-) diff --git a/invesalius/data/styles.py b/invesalius/data/styles.py index c2042b2..8b143e3 100644 --- a/invesalius/data/styles.py +++ b/invesalius/data/styles.py @@ -820,7 +820,6 @@ class WaterShedInteractorStyle(DefaultInteractorStyle): cvmask = do_colour_mask(vmask) self.viewer.slice_.qblend[self.orientation][n] = cvmask # TODO: To create a new function to reload images to viewer. - viewer._flush_buffer = True viewer.OnScrollBar() def OnBrushMove(self, obj, evt): @@ -937,7 +936,6 @@ class WaterShedInteractorStyle(DefaultInteractorStyle): self.viewer.slice_.current_mask.was_edited = True - self.viewer._flush_buffer = False self.viewer.OnScrollBar(update3D=False) def get_coordinate_cursor(self): @@ -1044,7 +1042,6 @@ class WaterShedInteractorStyle(DefaultInteractorStyle): self.viewer.slice_.current_mask.matrix[:, 0, :] = 1 self.viewer.slice_.current_mask.matrix[:, :, 0] = 1 - self.viewer._flush_buffer = True self.viewer.slice_.discard_all_buffers() self.viewer.OnScrollBar(update3D=False) -- libgit2 0.21.2