瀏覽代碼

wxNviz: fix loading 3d vectors

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51760 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 13 年之前
父節點
當前提交
29d16502a0
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      gui/wxpython/nviz/mapwindow.py

+ 3 - 2
gui/wxpython/nviz/mapwindow.py

@@ -1300,10 +1300,11 @@ class GLWindow(MapWindow, glcanvas.GLCanvas):
                     #             vecType.append(v)
                     layer = self.tree.GetPyData(item)[0]['maplayer']
                     npoints, nlines, nfeatures, mapIs3D = self.lmgr.nviz.VectorInfo(layer)
-                    if npoints > 0:
+                    if npoints > 0 or mapIs3D:
                         self.LoadVector(item, points = True)
-                    if nlines > 0:
+                    if nlines > 0 or mapIs3D:
                         self.LoadVector(item, points = False)
+                    
             except GException, e:
                 GError(parent = self,
                        message = e.value)