Commit 9055b1d59eb1adbd82dd20d0f92fa728c01ce1ef

Authored by tatiana
1 parent 12e311c6

FIX: Change mask colour

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
invesalius/data/viewer_slice.py
@@ -312,8 +312,9 @@ class Viewer(wx.Panel): @@ -312,8 +312,9 @@ class Viewer(wx.Panel):
312 colour_wx = pubsub_evt.data 312 colour_wx = pubsub_evt.data
313 colour_vtk = [colour/float(255) for colour in colour_wx] 313 colour_vtk = [colour/float(255) for colour in colour_wx]
314 self._brush_cursor_colour = colour_vtk 314 self._brush_cursor_colour = colour_vtk
315 - self.cursor.SetColour(colour_vtk)  
316 - self.interactor.Render() 315 + if self.cursor:
  316 + self.cursor.SetColour(colour_vtk)
  317 + self.interactor.Render()
317 318
318 def ChangeBrushActor(self, pubsub_evt): 319 def ChangeBrushActor(self, pubsub_evt):
319 brush_type = pubsub_evt.data 320 brush_type = pubsub_evt.data