Skip to content

Commit

Permalink
[processing] resurrecting some parameters in Modeler
Browse files Browse the repository at this point in the history
  • Loading branch information
ghtmtt authored and nyalldawson committed May 4, 2018
1 parent 2e67885 commit 177f2c8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions python/plugins/processing/core/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,11 @@ def getParameterFromString(s):
if clazz == QgsProcessingParameterRasterLayer:
if len(params) > 3:
params[3] = True if params[3].lower() == 'true' else False
elis clazz == QgsProcessingParameterBand:
if len(params) > 3:
params[3] = True if params[3].lower() == 'true' else False
elif clazz == QgsProcessingParameterVectorLayer:
if len(params) > 2:
params[2] = [int(p) for p in params[2].split(';')]
if len(params) > 4:
params[4] = True if params[4].lower() == 'true' else False
elif clazz == QgsProcessingParameterMapLayer:
if len(params) > 3:
params[3[ = True if params[3].lower() == 'true' else False
elif clazz == QgsProcessingParameterBoolean:
if len(params) > 2:
params[2] = True if params[2].lower() == 'true' else False
Expand All @@ -138,9 +132,6 @@ def getParameterFromString(s):
elif clazz == QgsProcessingParameterExtent:
if len(params) > 3:
params[3] = True if params[3].lower() == 'true' else False
elif clazz == QgsProcessingParameterExpression:
if len(params) > 3:
params[3] = True if params[3].lower() == 'true' else False
elif clazz == QgsProcessingParameterEnum:
if len(params) > 2:
params[2] = params[2].split(';')
Expand Down

0 comments on commit 177f2c8

Please sign in to comment.