[GRASS-SVN] r64565 - in grass/trunk/gui/wxpython: mapdisp nviz

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 11 08:58:42 PST 2015


Author: annakrat
Date: 2015-02-11 08:58:42 -0800 (Wed, 11 Feb 2015)
New Revision: 64565

Modified:
   grass/trunk/gui/wxpython/mapdisp/frame.py
   grass/trunk/gui/wxpython/nviz/tools.py
Log:
wxGUI/nviz: revert r64473 because it causes problems on Mac

Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py	2015-02-11 16:52:33 UTC (rev 64564)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py	2015-02-11 16:58:42 UTC (rev 64565)
@@ -105,7 +105,6 @@
         # Emitted when starting (switching to) 3D mode.
         # Parameter firstTime specifies if 3D was already actived.
         self.starting3dMode = Signal("MapFrame.starting3dMode")
-        self.starting3dModeSetInitialMaps = Signal("MapFrame.starting3dMode")
 
         # Emitted when ending (switching from) 3D mode.
         self.ending3dMode = Signal("MapFrame.ending3dMode")
@@ -393,7 +392,6 @@
             self.MapWindow3D.overlayActivated.connect(self._activateOverlay)
             self.MapWindow3D.overlayHidden.connect(self._hideOverlay)
             self.legend.overlayChanged.connect(self.MapWindow3D.UpdateOverlays)
-            self.starting3dModeSetInitialMaps.emit()
         else:
             self._switchMapWindow(self.MapWindow3D)
             os.environ['GRASS_REGION'] = self.Map.SetRegion(windres = True, windres3 = True)
@@ -408,9 +406,6 @@
             self.starting3dMode.emit(firstTime=False)
 
             self.MapWindow3D.ResetViewHistory()
-            # explicitly load layers so that we can call SetInitialMaps after that
-            self.MapWindow3D.LoadDataLayers()
-            self.starting3dModeSetInitialMaps.emit()
 
         self._giface.updateMap.disconnect(self.MapWindow2D.UpdateMap)
         self._giface.updateMap.connect(self.MapWindow3D.UpdateMap)

Modified: grass/trunk/gui/wxpython/nviz/tools.py
===================================================================
--- grass/trunk/gui/wxpython/nviz/tools.py	2015-02-11 16:52:33 UTC (rev 64564)
+++ grass/trunk/gui/wxpython/nviz/tools.py	2015-02-11 16:58:42 UTC (rev 64565)
@@ -114,7 +114,6 @@
         # bindings
         self.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED, self.OnPageChanged)
         self.Bind(wx.EVT_SIZE, self.OnSize)
-        self.mapDisplay.starting3dModeSetInitialMaps.connect(self.SetInitialMaps)
         
         self.mapWindow.GetAnimation().animationFinished.connect(self.OnAnimationFinished)
         self.mapWindow.GetAnimation().animationUpdateIndex.connect(self.OnAnimationUpdateIndex)
@@ -125,6 +124,7 @@
         wx.CallAfter(self.SetPage, 'view')
         wx.CallAfter(self.UpdateScrolling, (self.foldpanelData, self.foldpanelAppear,
                                             self.foldpanelAnalysis))       
+        wx.CallAfter(self.SetInitialMaps)
         
     def SetInitialMaps(self):
         """Set initial raster and vector map"""



More information about the grass-commit mailing list