Commit cb598e8ea4eee7862e65845ba81293ea382d76aa

Authored by Paulo Henrique Junqueira Amorim
1 parent 875c9754

FIX: Case edit mask and change threshold, is created the surface edited, not threshold some

Showing 1 changed file with 2 additions and 3 deletions   Show diff stats
invesalius/data/slice_.py
@@ -59,9 +59,6 @@ class Slice(object): @@ -59,9 +59,6 @@ class Slice(object):
59 def __set_current_mask_threshold_limits(self, pubsub_evt): 59 def __set_current_mask_threshold_limits(self, pubsub_evt):
60 thresh_min = pubsub_evt.data[0] 60 thresh_min = pubsub_evt.data[0]
61 thresh_max = pubsub_evt.data[1] 61 thresh_max = pubsub_evt.data[1]
62 - print "***********"  
63 - print thresh_min, thresh_max  
64 - print "***********"  
65 if self.current_mask: 62 if self.current_mask:
66 index = self.current_mask.index 63 index = self.current_mask.index
67 self.SetMaskEditionThreshold(index, (thresh_min, thresh_max)) 64 self.SetMaskEditionThreshold(index, (thresh_min, thresh_max))
@@ -94,6 +91,8 @@ class Slice(object): @@ -94,6 +91,8 @@ class Slice(object):
94 threshold_range = evt_pubsub.data 91 threshold_range = evt_pubsub.data
95 index = self.current_mask.index 92 index = self.current_mask.index
96 self.SetMaskThreshold(index, threshold_range) 93 self.SetMaskThreshold(index, threshold_range)
  94 + #Clear edited points
  95 + self.current_mask.edited_points = {}
97 96
98 def __set_current_mask_colour(self, pubsub_evt): 97 def __set_current_mask_colour(self, pubsub_evt):
99 # "if" is necessary because wx events are calling this before any mask 98 # "if" is necessary because wx events are calling this before any mask