[GRASS-SVN] r47357 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 2 12:44:29 EDT 2011
Author: annakrat
Date: 2011-08-02 09:44:29 -0700 (Tue, 02 Aug 2011)
New Revision: 47357
Modified:
grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py
Log:
wxNviz: fix minor bug, remove unused variables
Modified: grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py 2011-08-02 12:42:57 UTC (rev 47356)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py 2011-08-02 16:44:29 UTC (rev 47357)
@@ -111,8 +111,7 @@
self.textdict = {}
self.dragid = None
self.hitradius = 5
- self.lastMouseVector = (0,0)
- self.sumdxdy = [0, 0]
+
if self.lmgr:
self.log = self.lmgr.goutput
logerr = self.lmgr.goutput.cmd_stderr
@@ -1895,7 +1894,7 @@
self.light['position']['z']/100.)
subcmd += "light_brightness=%d " % (self.light['bright'])
subcmd += "light_ambient=%d " % (self.light['ambient'])
- subcmd += "light_color=%d:%d:%d " % (self.light['color'])
+ subcmd += "light_color=%d:%d:%d " % (self.light['color'][:3])
cmd += subcmd
cmd += "\\\n"
# fringe
More information about the grass-commit
mailing list