Skip to content

Commit

Permalink
[temporal] Insure the output directory exists when exporting animation
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jun 19, 2020
1 parent f5a7d90 commit f7bb4b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/qgstemporalutils.cpp
Expand Up @@ -72,6 +72,11 @@ bool QgsTemporalUtils::exportAnimation( const QgsMapSettings &mapSettings, const
error = QObject::tr( "Filename template must contain all # placeholders in one continuous group." );
return false;
}
if ( !QDir().mkpath( settings.outputDirectory ) )
{
error = QObject::tr( "Output directory creation failure." );
return false;
}

QgsTemporalNavigationObject navigator;
navigator.setTemporalExtents( settings.animationRange );
Expand Down

0 comments on commit f7bb4b8

Please sign in to comment.