Commit e9f5883bb70ddfec99464d9b4ac2e7b82c013ade
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,8 +264,6 @@ class Slice(metaclass=utils.Singleton): | ||
264 | def OnRemoveMasks(self, mask_indexes): | 264 | def OnRemoveMasks(self, mask_indexes): |
265 | proj = Project() | 265 | proj = Project() |
266 | for item in mask_indexes: | 266 | for item in mask_indexes: |
267 | - proj.RemoveMask(item) | ||
268 | - | ||
269 | # if the deleted mask is the current mask, cleans the current mask | 267 | # if the deleted mask is the current mask, cleans the current mask |
270 | # and discard from buffer all datas related to mask. | 268 | # and discard from buffer all datas related to mask. |
271 | if self.current_mask is not None and item == self.current_mask.index: | 269 | if self.current_mask is not None and item == self.current_mask.index: |
@@ -277,6 +275,7 @@ class Slice(metaclass=utils.Singleton): | @@ -277,6 +275,7 @@ class Slice(metaclass=utils.Singleton): | ||
277 | 275 | ||
278 | Publisher.sendMessage("Show mask", index=item, value=False) | 276 | Publisher.sendMessage("Show mask", index=item, value=False) |
279 | Publisher.sendMessage("Reload actual slice") | 277 | Publisher.sendMessage("Reload actual slice") |
278 | + proj.RemoveMask(item) | ||
280 | 279 | ||
281 | def OnDuplicateMasks(self, mask_indexes): | 280 | def OnDuplicateMasks(self, mask_indexes): |
282 | proj = Project() | 281 | proj = Project() |