From 5206c47950feac524bf0ef68600e840ab8d25302 Mon Sep 17 00:00:00 2001 From: tfmoraes Date: Fri, 23 Mar 2012 16:49:45 +0000 Subject: [PATCH] Not trying to update the 3D slice when the user is editing a mask --- invesalius/data/viewer_slice.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py index 822d4d5..aec0f57 100755 --- a/invesalius/data/viewer_slice.py +++ b/invesalius/data/viewer_slice.py @@ -785,7 +785,7 @@ class Viewer(wx.Panel): position, radius, self.orientation) # TODO: To create a new function to reload images to viewer. - self.OnScrollBar() + self.OnScrollBar(update3D=False) else: self.interactor.Render() @@ -1345,10 +1345,11 @@ class Viewer(wx.Panel): ps.Publisher().sendMessage('Change slice from slice plane',\ (self.orientation, pos)) - def OnScrollBar(self, evt=None): + def OnScrollBar(self, evt=None, update3D=True): pos = self.scroll.GetThumbPosition() self.set_slice_number(pos) - self.UpdateSlice3D(pos) + if update3D: + self.UpdateSlice3D(pos) if self.state == const.SLICE_STATE_CROSS: # Update other slice's cross according to the new focal point from # the actual orientation. -- libgit2 0.21.2