Commit 9055b1d59eb1adbd82dd20d0f92fa728c01ce1ef
1 parent
12e311c6
Exists in
master
and in
68 other branches
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 | 312 | colour_wx = pubsub_evt.data |
313 | 313 | colour_vtk = [colour/float(255) for colour in colour_wx] |
314 | 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 | 319 | def ChangeBrushActor(self, pubsub_evt): |
319 | 320 | brush_type = pubsub_evt.data | ... | ... |