From 9055b1d59eb1adbd82dd20d0f92fa728c01ce1ef Mon Sep 17 00:00:00 2001 From: tatiana Date: Tue, 18 Aug 2009 20:22:39 +0000 Subject: [PATCH] FIX: Change mask colour --- invesalius/data/viewer_slice.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py index 0ebe6f6..0e42c68 100755 --- a/invesalius/data/viewer_slice.py +++ b/invesalius/data/viewer_slice.py @@ -312,8 +312,9 @@ class Viewer(wx.Panel): colour_wx = pubsub_evt.data colour_vtk = [colour/float(255) for colour in colour_wx] self._brush_cursor_colour = colour_vtk - self.cursor.SetColour(colour_vtk) - self.interactor.Render() + if self.cursor: + self.cursor.SetColour(colour_vtk) + self.interactor.Render() def ChangeBrushActor(self, pubsub_evt): brush_type = pubsub_evt.data -- libgit2 0.21.2