Skip to content

Commit

Permalink
Add sip casting
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 8, 2020
1 parent 0ca6301 commit 82cc5a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Expand Up @@ -35,6 +35,10 @@ how an individual QgsMapLayer behaves in a temporal context, e.g. while animatin
{
sipType = sipType_QgsMeshLayerTemporalProperties;
}
else if ( qobject_cast<QgsVectorLayerTemporalProperties *>( sipCpp ) )
{
sipType = sipType_QgsVectorLayerTemporalProperties;
}
else
{
sipType = 0;
Expand Down
4 changes: 4 additions & 0 deletions src/core/qgsmaplayertemporalproperties.h
Expand Up @@ -53,6 +53,10 @@ class CORE_EXPORT QgsMapLayerTemporalProperties : public QgsTemporalProperty
{
sipType = sipType_QgsMeshLayerTemporalProperties;
}
else if ( qobject_cast<QgsVectorLayerTemporalProperties *>( sipCpp ) )
{
sipType = sipType_QgsVectorLayerTemporalProperties;
}
else
{
sipType = 0;
Expand Down

0 comments on commit 82cc5a1

Please sign in to comment.