Skip to content
Permalink
Browse files

[temporal] Insure the output directory exists when exporting animation

  • Loading branch information
nirvn committed Jun 19, 2020
1 parent f5a7d90 commit f7bb4b8f98967b29d652fe158581d77fd4ea2e8d
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/qgstemporalutils.cpp
@@ -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 );

0 comments on commit f7bb4b8

Please sign in to comment.
You can’t perform that action at this time.