Commit 07c4599100e07368fcb7da135627e1233bebadee

Authored by Thiago Franco de Moraes
1 parent 5bd43908

discarding mask buffer after a boolean operation

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
invesalius/data/slice_.py
... ... @@ -1278,6 +1278,10 @@ class Slice(object):
1278 1278 elif op == const.BOOLEAN_XOR:
1279 1279 m[:] = numpy.logical_xor((m1 > 2), (m2 > 2)) * 255
1280 1280  
  1281 + for o in self.buffer_slices:
  1282 + self.buffer_slices[o].discard_mask()
  1283 + self.buffer_slices[o].discard_vtk_mask()
  1284 +
1281 1285 future_mask.was_edited = True
1282 1286 self._add_mask_into_proj(future_mask)
1283 1287  
... ...