Commit bc0c79233fd12e85df44ad169a46807b3d9288f2

Authored by tfmoraes
1 parent f9b2672b

Removing measures is working again

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
invesalius/data/viewer_slice.py
@@ -1333,6 +1333,7 @@ class Viewer(wx.Panel): @@ -1333,6 +1333,7 @@ class Viewer(wx.Panel):
1333 except KeyError: 1333 except KeyError:
1334 for actor in actors: 1334 for actor in actors:
1335 self.actors_by_slice_number[n].remove(actor) 1335 self.actors_by_slice_number[n].remove(actor)
  1336 + self.slice_data.renderer.RemoveActor(actor)
1336 else: 1337 else:
1337 for actor in actors: 1338 for actor in actors:
1338 # Remove the actor from the renderer 1339 # Remove the actor from the renderer