[GRASS-SVN] r51761 - grass/branches/develbranch_6/gui/wxpython/nviz

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 26 06:23:37 EDT 2012


Author: annakrat
Date: 2012-05-26 03:23:37 -0700 (Sat, 26 May 2012)
New Revision: 51761

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

Modified: grass/branches/develbranch_6/gui/wxpython/nviz/mapwindow.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/nviz/mapwindow.py	2012-05-26 10:10:52 UTC (rev 51760)
+++ grass/branches/develbranch_6/gui/wxpython/nviz/mapwindow.py	2012-05-26 10:23:37 UTC (rev 51761)
@@ -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