Commit e9f5883bb70ddfec99464d9b4ac2e7b82c013ade

Authored by Thiago Franco de Moraes
1 parent 360a7beb
Exists in master

Improvements on mask 3d preview when removing masks

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
invesalius/data/slice_.py
... ... @@ -264,8 +264,6 @@ class Slice(metaclass=utils.Singleton):
264 264 def OnRemoveMasks(self, mask_indexes):
265 265 proj = Project()
266 266 for item in mask_indexes:
267   - proj.RemoveMask(item)
268   -
269 267 # if the deleted mask is the current mask, cleans the current mask
270 268 # and discard from buffer all datas related to mask.
271 269 if self.current_mask is not None and item == self.current_mask.index:
... ... @@ -277,6 +275,7 @@ class Slice(metaclass=utils.Singleton):
277 275  
278 276 Publisher.sendMessage("Show mask", index=item, value=False)
279 277 Publisher.sendMessage("Reload actual slice")
  278 + proj.RemoveMask(item)
280 279  
281 280 def OnDuplicateMasks(self, mask_indexes):
282 281 proj = Project()
... ...