From e9f5883bb70ddfec99464d9b4ac2e7b82c013ade Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Thu, 4 Nov 2021 11:13:32 -0300 Subject: [PATCH] Improvements on mask 3d preview when removing masks --- invesalius/data/slice_.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/invesalius/data/slice_.py b/invesalius/data/slice_.py index 84aff4e..9d60327 100644 --- a/invesalius/data/slice_.py +++ b/invesalius/data/slice_.py @@ -264,8 +264,6 @@ class Slice(metaclass=utils.Singleton): def OnRemoveMasks(self, mask_indexes): proj = Project() for item in mask_indexes: - proj.RemoveMask(item) - # if the deleted mask is the current mask, cleans the current mask # and discard from buffer all datas related to mask. if self.current_mask is not None and item == self.current_mask.index: @@ -277,6 +275,7 @@ class Slice(metaclass=utils.Singleton): Publisher.sendMessage("Show mask", index=item, value=False) Publisher.sendMessage("Reload actual slice") + proj.RemoveMask(item) def OnDuplicateMasks(self, mask_indexes): proj = Project() -- libgit2 0.21.2