Commit 28bc199d13c94a231dd38cc6b9d5b27407cc37f8

Authored by tfmoraes
1 parent 21c3a7cf

FIX: The name setted by the user was not being used in a new mask

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
invesalius/data/slice_.py
... ... @@ -744,6 +744,8 @@ class Slice(object):
744 744 future_mask = Mask()
745 745 future_mask.create_mask(self.matrix.shape)
746 746  
  747 + if name:
  748 + future_mask.name = name
747 749 if colour:
748 750 future_mask.colour = colour
749 751 if opacity:
... ...