GPencil: Fix compiler warning when HARU and PUGIXML are disabled

The function only must be included if Haru or Pugixml is enabled.
This commit is contained in:
Antonio Vazquez 2021-03-25 16:06:24 +01:00
parent 1d7adb6d8a
commit 5ebe74e779
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,7 @@
#include "gpencil_io.h"
#if defined(WITH_PUGIXML) || defined(WITH_HARU)
/* Definition of enum elements to export. */
/* Common props for exporting. */
static void gpencil_export_common_props_definition(wmOperatorType *ot)
@ -102,6 +103,7 @@ static void set_export_filepath(bContext *C, wmOperator *op, const char *extensi
RNA_string_set(op->ptr, "filepath", filepath);
}
}
#endif
/* <-------- SVG single frame export. --------> */
#ifdef WITH_PUGIXML