瀏覽代碼

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 年之前
父節點
當前提交
d248846604
共有 1 個文件被更改,包括 2 次插入0 次删除
  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