Browse Source

wxGUI/nviz: fix selecting 3D raster

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66587 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 years ago
parent
commit
d248846604
1 changed files with 2 additions and 0 deletions
  1. 2 0
      gui/wxpython/nviz/tools.py

+ 2 - 0
gui/wxpython/nviz/tools.py

@@ -1514,6 +1514,8 @@ class NvizToolWindow(FN.FlatNotebook):
     def GselectOnPopup(self, ltype, exclude = False):
         """Update gselect.Select() items"""
         maps = list()
+        # TODO: sync the element names
+        ltype = '3d-raster' if ltype == 'raster_3d' else ltype
         for layer in self.mapWindow.Map.GetListOfLayers(ltype = ltype, active = True):
             maps.append(layer.GetName())
         return maps, exclude