Commit 04142cf165f5d556ae9b4175d5d05d2c34ffbfb3
1 parent
0879edaa
Exists in
master
and in
5 other branches
ENH: Improviments to show surface from task
Showing
2 changed files
with
1 additions
and
2 deletions
Show diff stats
invesalius/data/surface.py
@@ -322,7 +322,6 @@ class SurfaceManager(): | @@ -322,7 +322,6 @@ class SurfaceManager(): | ||
322 | self.last_surface_index = index | 322 | self.last_surface_index = index |
323 | self.ShowActor(index, True) | 323 | self.ShowActor(index, True) |
324 | 324 | ||
325 | - | ||
326 | def OnLoadSurfaceDict(self, pubsub_evt): | 325 | def OnLoadSurfaceDict(self, pubsub_evt): |
327 | surface_dict = pubsub_evt.data | 326 | surface_dict = pubsub_evt.data |
328 | for key in surface_dict: | 327 | for key in surface_dict: |
invesalius/gui/task_surface.py
@@ -499,7 +499,7 @@ class SurfaceProperties(wx.Panel): | @@ -499,7 +499,7 @@ class SurfaceProperties(wx.Panel): | ||
499 | self.button_colour.SetColour(colour) | 499 | self.button_colour.SetColour(colour) |
500 | self.slider_transparency.SetValue(transparency) | 500 | self.slider_transparency.SetValue(transparency) |
501 | self.combo_surface_name.SetSelection(index) | 501 | self.combo_surface_name.SetSelection(index) |
502 | - | 502 | + Publisher.sendMessage('Update surface data', (index)) |
503 | 503 | ||
504 | def OnComboName(self, evt): | 504 | def OnComboName(self, evt): |
505 | surface_name = evt.GetString() | 505 | surface_name = evt.GetString() |