Commit 28bc199d13c94a231dd38cc6b9d5b27407cc37f8
1 parent
21c3a7cf
Exists in
master
and in
5 other branches
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,6 +744,8 @@ class Slice(object): | ||
744 | future_mask = Mask() | 744 | future_mask = Mask() |
745 | future_mask.create_mask(self.matrix.shape) | 745 | future_mask.create_mask(self.matrix.shape) |
746 | 746 | ||
747 | + if name: | ||
748 | + future_mask.name = name | ||
747 | if colour: | 749 | if colour: |
748 | future_mask.colour = colour | 750 | future_mask.colour = colour |
749 | if opacity: | 751 | if opacity: |