Skip to content

Commit

Permalink
handle new point cloud parameter in description files (follow up
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy authored and nyalldawson committed Aug 22, 2021
1 parent e35bff7 commit cfc72ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/plugins/processing/core/parameters.py
Expand Up @@ -59,7 +59,8 @@
QgsProcessingParameterMultipleLayers,
QgsProcessingParameterFeatureSource,
QgsProcessingParameterNumber,
QgsProcessingParameterColor)
QgsProcessingParameterColor,
QgsProcessingParameterPointCloudLayer)

from qgis.PyQt.QtCore import QCoreApplication

Expand Down Expand Up @@ -107,6 +108,9 @@ def getParameterFromString(s, context=''):
if clazz == QgsProcessingParameterRasterLayer:
if len(params) > 3:
params[3] = True if params[3].lower() == 'true' else False
if clazz == QgsProcessingParameterPointCloudLayer:
if len(params) > 3:
params[3] = True if params[3].lower() == 'true' else False
elif clazz == QgsProcessingParameterBand:
if len(params) > 4:
params[4] = True if params[4].lower() == 'true' else False
Expand Down

0 comments on commit cfc72ca

Please sign in to comment.