Forráskód Böngészése

wxGUI/nviz: m.nviz.image do not require elev map to be defined
switchPage -> priority


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56116 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 12 éve
szülő
commit
f94beda769
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      gui/wxpython/nviz/mapwindow.py

+ 3 - 3
gui/wxpython/nviz/mapwindow.py

@@ -2247,8 +2247,8 @@ class GLWindow(MapWindow, glcanvas.GLCanvas):
                 volumes.append(item)
             elif self.tree.GetLayerInfo(item, key = 'type') == 'vector':
                 vectors.append(item)
-        if not rasters and not self.constants:
-            return _("At least one raster map required")
+        ### if not rasters and not self.constants:
+        ###     return _("At least one raster map required")
         # elevation_map/elevation_value
         if self.constants:
             subcmd = "elevation_value="
@@ -2513,7 +2513,7 @@ class GLWindow(MapWindow, glcanvas.GLCanvas):
     
     def OnNvizCmd(self):
         """!Generate and write command to command output"""
-        self.log.WriteLog(self.NvizCmdCommand(), switchPage = True)
+        self.log.WriteLog(self.NvizCmdCommand(), priority = 3)
         
     def SaveToFile(self, FileName, FileType, width, height):
         """!This draws the DC to a buffer that can be saved to a file.