File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -528,6 +528,18 @@ QgsMapLayer *QgsProcessingParameters::parameterAsLayer( const QgsProcessingParam
528
528
return layer;
529
529
}
530
530
531
+ if ( val.canConvert <QgsProcessingOutputLayerDefinition>() )
532
+ {
533
+ // input is a QgsProcessingOutputLayerDefinition - get extra properties from it
534
+ QgsProcessingOutputLayerDefinition fromVar = qvariant_cast<QgsProcessingOutputLayerDefinition>( val );
535
+ val = fromVar.sink ;
536
+ }
537
+
538
+ if ( val.canConvert <QgsProperty>() && val.value < QgsProperty >().propertyType () == QgsProperty::StaticProperty )
539
+ {
540
+ val = val.value < QgsProperty >().staticValue ();
541
+ }
542
+
531
543
if ( !val.isValid () || val.toString ().isEmpty () )
532
544
{
533
545
// fall back to default
You can’t perform that action at this time.
0 commit comments