From 3a514269ea0e3d97a1c6cc6a5abd9302c91d7f09 Mon Sep 17 00:00:00 2001 From: Alexander Bruy Date: Tue, 12 Jan 2016 16:45:57 +0200 Subject: [PATCH] [processing] remove nviz algorithm from modeller (fix #9107) --- python/plugins/processing/algs/grass/nviz.py | 4 ++++ python/plugins/processing/algs/grass7/nviz7.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/python/plugins/processing/algs/grass/nviz.py b/python/plugins/processing/algs/grass/nviz.py index 33be878f86d..9f5e0cca263 100644 --- a/python/plugins/processing/algs/grass/nviz.py +++ b/python/plugins/processing/algs/grass/nviz.py @@ -52,6 +52,10 @@ class nviz(GeoAlgorithm): GRASS_REGION_EXTENT_PARAMETER = 'GRASS_REGION_PARAMETER' GRASS_REGION_CELLSIZE_PARAMETER = 'GRASS_REGION_CELLSIZE_PARAMETER' + def __init__(self): + GeoAlgorithm.__init__(self) + self.showInModeler = False + def getIcon(self): return QIcon(os.path.join(pluginPath, 'images', 'grass.png')) diff --git a/python/plugins/processing/algs/grass7/nviz7.py b/python/plugins/processing/algs/grass7/nviz7.py index 5f009dfcd7e..018440ff9ef 100644 --- a/python/plugins/processing/algs/grass7/nviz7.py +++ b/python/plugins/processing/algs/grass7/nviz7.py @@ -52,6 +52,10 @@ class nviz7(GeoAlgorithm): GRASS_REGION_EXTENT_PARAMETER = 'GRASS_REGION_PARAMETER' GRASS_REGION_CELLSIZE_PARAMETER = 'GRASS_REGION_CELLSIZE_PARAMETER' + def __init__(self): + GeoAlgorithm.__init__(self) + self.showInModeler = False + def getIcon(self): return QtGui.QIcon(os.path.join(pluginPath, 'images', 'grass.png'))