From 37fb3800a6e8fa29a3cc8c0b736159c4b083938f Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Mon, 24 Jun 2019 15:49:16 -0300 Subject: [PATCH] FIX: when changing mask the edition threshold was set to global threshold --- invesalius/data/slice_.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/invesalius/data/slice_.py b/invesalius/data/slice_.py index 4497604..f7aebb2 100644 --- a/invesalius/data/slice_.py +++ b/invesalius/data/slice_.py @@ -459,6 +459,8 @@ class Slice(with_metaclass(utils.Singleton, object)): image = self.buffer_slices[orientation].image thresh_min, thresh_max = self.current_mask.edition_threshold_range + print("Threshold", thresh_min, thresh_max) + if hasattr(position, '__iter__'): px, py = position if orientation == 'AXIAL': @@ -922,7 +924,7 @@ class Slice(with_metaclass(utils.Singleton, object)): proj.mask_dict[index].on_show() if value: - threshold_range = proj.mask_dict[index].threshold_range + threshold_range = proj.mask_dict[index].edition_threshold_range Publisher.sendMessage('Set edition threshold gui', threshold_range=threshold_range) if (index == self.current_mask.index): -- libgit2 0.21.2