Commit 4511a871f2b7e8c449bef9a781c16c5170419196

Authored by Thiago Franco de Moraes
1 parent f49cc291

Restarting surface counting when closing project

invesalius/data/surface.py
... ... @@ -361,6 +361,9 @@ class SurfaceManager():
361 361 del self.actors_dict
362 362 self.actors_dict = {}
363 363  
  364 + # restarting the surface index
  365 + Surface.general_index = -1
  366 +
364 367 def OnSelectSurface(self, pubsub_evt):
365 368 index = pubsub_evt.data
366 369 #self.last_surface_index = index
... ...
invesalius/gui/task_surface.py
... ... @@ -501,6 +501,7 @@ class SurfaceProperties(wx.Panel):
501 501 n = self.combo_surface_name.GetCount()
502 502 for i in xrange(n-1, -1, -1):
503 503 self.combo_surface_name.Delete(i)
  504 + self.surface_list = []
504 505  
505 506 def ChangeSurfaceName(self, pubsub_evt):
506 507 index, name = pubsub_evt.data
... ...