[GRASS-SVN] r57695 - grass/trunk/gui/wxpython/nviz
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Sep 15 14:23:00 PDT 2013
Author: annakrat
Date: 2013-09-15 14:23:00 -0700 (Sun, 15 Sep 2013)
New Revision: 57695
Modified:
grass/trunk/gui/wxpython/nviz/tools.py
grass/trunk/gui/wxpython/nviz/workspace.py
Log:
wxNviz: fix error when switching to 3D second time for 3d rasters
Modified: grass/trunk/gui/wxpython/nviz/tools.py
===================================================================
--- grass/trunk/gui/wxpython/nviz/tools.py 2013-09-15 12:04:29 UTC (rev 57694)
+++ grass/trunk/gui/wxpython/nviz/tools.py 2013-09-15 21:23:00 UTC (rev 57695)
@@ -3834,7 +3834,7 @@
ret = self._display.SetIsosurfaceInOut(id, isosurfId, event.GetInt())
if ret == 1:
- data['isosurface'][isosurfId]['inout'] = event.GetInt()
+ data['isosurface'][isosurfId]['inout']['value'] = event.GetInt()
if self.mapDisplay.IsAutoRendered():
self.mapWindow.Refresh(False)
@@ -4973,7 +4973,7 @@
attrb = attrb, map = data[attrb]['map'])
# set inout
if 'inout' in data:
- self.FindWindowById(self.win['volume']['inout']).SetValue(data['inout'])
+ self.FindWindowById(self.win['volume']['inout']).SetValue(data['inout']['value'])
def UpdateVolumeSlicePage(self, data):
"""!Update dialog -- slice attributes"""
Modified: grass/trunk/gui/wxpython/nviz/workspace.py
===================================================================
--- grass/trunk/gui/wxpython/nviz/workspace.py 2013-09-15 12:04:29 UTC (rev 57694)
+++ grass/trunk/gui/wxpython/nviz/workspace.py 2013-09-15 21:23:00 UTC (rev 57695)
@@ -147,12 +147,15 @@
def SetIsosurfaceDefaultProp(self):
"""!Set default isosurface properties"""
data = dict()
- for attr in ('shine', 'topo', 'transp', 'color'):
+ for attr in ('shine', 'topo', 'transp', 'color', 'inout'):
data[attr] = {}
+ data[attr]['update'] = None
+ if attr == 'inout':
+ data[attr]['value'] = 0
+ continue
for key, value in UserSettings.Get(group = 'nviz', key = 'volume',
subkey = attr).iteritems():
data[attr][key] = value
- data[attr]['update'] = None
return data
def SetSliceDefaultProp(self):
More information about the grass-commit
mailing list