[processing][OTB] Don't remove parameter if its value is 0

This commit is contained in:
Julien Cabieces 2020-11-10 14:23:26 +01:00 committed by Nyall Dawson
parent 50696f9936
commit c66d36c16f

View File

@ -202,7 +202,7 @@ class OtbAlgorithm(QgsProcessingAlgorithm):
outputPixelType = None
for k, v in parameters.items():
# if value is None for a parameter we don't have any businees with this key
if not v or v is None:
if v is None:
continue
# for 'outputpixeltype' parameter we find the pixeltype string from self.pixelTypes
if k == 'outputpixeltype':