Commit b0e337dc791175b22e16a4026c215e306e0e3338
1 parent
36496681
Exists in
master
and in
5 other branches
FIX: Updating mask colour on vtkimagedata on changing mask colour
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
invesalius/data/slice_.py
... | ... | @@ -412,7 +412,10 @@ class Slice(object): |
412 | 412 | (index, (r,g,b))) |
413 | 413 | ps.Publisher().sendMessage('Set GUI items colour', colour_wx) |
414 | 414 | if update: |
415 | - ps.Publisher().sendMessage('Update slice viewer') | |
415 | + # Updating mask colour on vtkimagedata. | |
416 | + for buffer_ in self.buffer_slices.values(): | |
417 | + buffer_.discard_vtk_mask() | |
418 | + ps.Publisher().sendMessage('Reload actual slice') | |
416 | 419 | |
417 | 420 | session = ses.Session() |
418 | 421 | session.ChangeProject() | ... | ... |