Commit a2e45b2ae5707eeb24d81ff8b94d59bfd5afd819
1 parent
fea0946c
Exists in
master
and in
6 other branches
FIX: Remove old actors from render when proejct is closed
Showing
2 changed files
with
3 additions
and
0 deletions
Show diff stats
invesalius/data/surface.py
| ... | ... | @@ -120,6 +120,8 @@ class SurfaceManager(): |
| 120 | 120 | self.CloseProject() |
| 121 | 121 | |
| 122 | 122 | def CloseProject(self): |
| 123 | + for index in self.actors_dict: | |
| 124 | + ps.Publisher().sendMessage('Remove surface actor from viewer', self.actors_dict[index]) | |
| 123 | 125 | del self.actors_dict |
| 124 | 126 | self.actors_dict = {} |
| 125 | 127 | ... | ... |
invesalius/data/viewer_volume.py