[GRASS-SVN] r51760 - grass/trunk/gui/wxpython/nviz
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 26 06:10:52 EDT 2012
Author: annakrat
Date: 2012-05-26 03:10:52 -0700 (Sat, 26 May 2012)
New Revision: 51760
Modified:
grass/trunk/gui/wxpython/nviz/mapwindow.py
Log:
wxNviz: fix loading 3d vectors
Modified: grass/trunk/gui/wxpython/nviz/mapwindow.py
===================================================================
--- grass/trunk/gui/wxpython/nviz/mapwindow.py 2012-05-25 15:47:07 UTC (rev 51759)
+++ grass/trunk/gui/wxpython/nviz/mapwindow.py 2012-05-26 10:10:52 UTC (rev 51760)
@@ -1300,10 +1300,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