[GRASS-SVN] r51762 - grass/branches/releasebranch_6_4/gui/wxpython/nviz

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 26 06:25:07 EDT 2012


Author: annakrat
Date: 2012-05-26 03:25:06 -0700 (Sat, 26 May 2012)
New Revision: 51762

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/nviz/mapwindow.py
Log:
wxNviz: fix loading 3d vectors (merged from trunk, r51760)

Modified: grass/branches/releasebranch_6_4/gui/wxpython/nviz/mapwindow.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/nviz/mapwindow.py	2012-05-26 10:23:37 UTC (rev 51761)
+++ grass/branches/releasebranch_6_4/gui/wxpython/nviz/mapwindow.py	2012-05-26 10:25:06 UTC (rev 51762)
@@ -1296,10 +1296,11 @@
                     #             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)



More information about the grass-commit mailing list