Procházet zdrojové kódy

wxNviz: cutting planes rendering correction

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46655 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová před 14 roky
rodič
revize
cc9e594b4e
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      gui/wxpython/gui_modules/nviz_tools.py

+ 5 - 0
gui/wxpython/gui_modules/nviz_tools.py

@@ -3009,11 +3009,16 @@ class NvizToolWindow(FN.FlatNotebook):
         data = self.mapWindow.cplanes[planeIndex][action]
         data = self.mapWindow.cplanes[planeIndex][action]
         self.OnScroll(event, self.win['cplane'][action], data)
         self.OnScroll(event, self.win['cplane'][action], data)
         
         
+        self.mapWindow.render['quick'] = True
         event = wxUpdateCPlane(update = (action,), current = planeIndex)
         event = wxUpdateCPlane(update = (action,), current = planeIndex)
         wx.PostEvent(self.mapWindow, event)
         wx.PostEvent(self.mapWindow, event)
+        
+        if self.mapDisplay.statusbarWin['render'].IsChecked():
+            self.mapWindow.Refresh(False)
 
 
     def OnCPlaneChangeDone(self, event):
     def OnCPlaneChangeDone(self, event):
         """!Cutting plane change done"""
         """!Cutting plane change done"""
+        self.mapWindow.render['quick'] = False
         if self.mapDisplay.statusbarWin['render'].IsChecked():
         if self.mapDisplay.statusbarWin['render'].IsChecked():
             self.mapWindow.Refresh(False)
             self.mapWindow.Refresh(False)