From 2cd865491ff7bba76812f6cd455801c8c3cc9892 Mon Sep 17 00:00:00 2001 From: tatiana Date: Thu, 23 Jul 2009 15:12:48 +0000 Subject: [PATCH] FIX: Edit recently created mask is working. --- invesalius/data/slice_.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/invesalius/data/slice_.py b/invesalius/data/slice_.py index 5ddf8f1..54d92c4 100644 --- a/invesalius/data/slice_.py +++ b/invesalius/data/slice_.py @@ -18,6 +18,7 @@ class Slice(object): def __init__(self): self.imagedata = None self.current_mask = None + self.blend_filter = None self.__bind_events() def __bind_events(self): @@ -216,7 +217,8 @@ class Slice(object): # This condition is not necessary in Linux, only under mac and windows # because combobox event is binded when the same item is selected again. - if index != self.current_mask.index: + #if index != self.current_mask.index: + if self.current_mask and self.blend_filter: proj = Project() future_mask = proj.GetMask(index) @@ -398,6 +400,11 @@ class Slice(object): future_mask.colour)) self.current_mask = future_mask + + ps.Publisher().sendMessage('Change mask selected', future_mask.index) + #ps.Publisher().sendMessage('Show mask', (future_mask.index, 1)) + ps.Publisher().sendMessage('Update slice viewer') + def __create_mask(self, imagedata): -- libgit2 0.21.2