Skip to content

Commit

Permalink
Missing bits
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jul 26, 2021
1 parent 435d8bf commit 5dc9583
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/processing/qgsprocessingparameters.cpp
Expand Up @@ -2279,6 +2279,8 @@ QgsProcessingParameterDefinition *QgsProcessingParameters::parameterFromScriptCo
return QgsProcessingParameterNumber::fromScriptCode( name, description, isOptional, definition );
else if ( type == QLatin1String( "distance" ) )
return QgsProcessingParameterDistance::fromScriptCode( name, description, isOptional, definition );
else if ( type == QLatin1String( "duration" ) )
return QgsProcessingParameterDuration::fromScriptCode( name, description, isOptional, definition );
else if ( type == QLatin1String( "scale" ) )
return QgsProcessingParameterScale::fromScriptCode( name, description, isOptional, definition );
else if ( type == QLatin1String( "range" ) )
Expand Down
1 change: 1 addition & 0 deletions src/core/processing/qgsprocessingregistry.cpp
Expand Up @@ -53,6 +53,7 @@ QgsProcessingRegistry::QgsProcessingRegistry( QObject *parent SIP_TRANSFERTHIS )
addParameterType( new QgsProcessingParameterTypeFeatureSource() );
addParameterType( new QgsProcessingParameterTypeNumber() );
addParameterType( new QgsProcessingParameterTypeDistance() );
addParameterType( new QgsProcessingParameterTypeDuration() );
addParameterType( new QgsProcessingParameterTypeScale() );
addParameterType( new QgsProcessingParameterTypeBand() );
addParameterType( new QgsProcessingParameterTypeFeatureSink() );
Expand Down

0 comments on commit 5dc9583

Please sign in to comment.