grass_nviz.LoadSurface not returning id when called a 2nd time
|Reported by:||cmbarton||Owned by:||martinl|
This item may fix a number of things.
If you start wxnviz and display a map, close wxnviz, restart nviz...
The 2nd time you start wxnnviz...
id = self.nvizClass.LoadSurface(str(layer.name), None, None)
in nviz_mapdisplay.py is not returning the id of the map. It returns only -1. It's got the name right in both cases. But it returns an id value the first time it is run, but not subsequently.
This is at line 477 of nviz_mapdisp.py. I'm not sure, but it looks like a SWIG call in grass_nviz.py.
Because this does not return an id value, a lot of other things begin to bomb.