From b7470270e3a579f98e8e36aa1645cd4d9192bd61 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Sat, 8 Aug 2020 19:42:14 -0300 Subject: [PATCH] Setting gui threshold values on showing mask --- invesalius/data/slice_.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/invesalius/data/slice_.py b/invesalius/data/slice_.py index 0ed9066..a58dee8 100644 --- a/invesalius/data/slice_.py +++ b/invesalius/data/slice_.py @@ -1117,8 +1117,14 @@ class Slice(metaclass=utils.Singleton): if value: threshold_range = proj.mask_dict[index].threshold_range + edition_threshold_range = proj.mask_dict[index].edition_threshold_range Publisher.sendMessage( - "Set edition threshold gui", threshold_range=threshold_range + "Set edition threshold gui", + threshold_range=edition_threshold_range + ) + Publisher.sendMessage( + "Set threshold values in gradient", + threshold_range=threshold_range ) if index == self.current_mask.index: -- libgit2 0.21.2