|
40 | 40 | QgsProcessingParameterRasterLayer,
|
41 | 41 | QgsProcessingParameterDefinition,
|
42 | 42 | QgsProcessingParameterVectorLayer,
|
| 43 | + QgsProcessingParameterMeshLayer, |
43 | 44 | QgsProcessingParameterFeatureSource)
|
44 | 45 |
|
45 | 46 | from processing.gui.MultipleInputDialog import MultipleInputDialog
|
@@ -101,11 +102,15 @@ def showPopupMenu(self):
|
101 | 102 | def showLayerSelectionDialog(self):
|
102 | 103 | layers = []
|
103 | 104 | if (isinstance(self.param, QgsProcessingParameterRasterLayer) or
|
104 |
| - (isinstance(self.param, QgsProcessingParameterMultipleLayers) and |
105 |
| - self.param.layerType() == QgsProcessing.TypeRaster)): |
| 105 | + (isinstance(self.param, QgsProcessingParameterMultipleLayers) and |
| 106 | + self.param.layerType() == QgsProcessing.TypeRaster)): |
106 | 107 | layers = QgsProcessingUtils.compatibleRasterLayers(QgsProject.instance())
|
107 | 108 | elif isinstance(self.param, QgsProcessingParameterVectorLayer):
|
108 | 109 | layers = QgsProcessingUtils.compatibleVectorLayers(QgsProject.instance())
|
| 110 | + elif (isinstance(self.param, QgsProcessingParameterMeshLayer) or |
| 111 | + (isinstance(self.param, QgsProcessingParameterMultipleLayers) and |
| 112 | + self.param.layerType() == QgsProcessing.TypeMesh)): |
| 113 | + layers = QgsProcessingUtils.compatibleMeshLayers(QgsProject.instance()) |
109 | 114 | else:
|
110 | 115 | datatypes = [QgsProcessing.TypeVectorAnyGeometry]
|
111 | 116 | if isinstance(self.param, QgsProcessingParameterFeatureSource):
|
|
0 commit comments