From 5ebe74e77903dc97472cbee3f708044da6329102 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Thu, 25 Mar 2021 16:06:24 +0100 Subject: GPencil: Fix compiler warning when HARU and PUGIXML are disabled The function only must be included if Haru or Pugixml is enabled. --- source/blender/editors/io/io_gpencil_export.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/io') diff --git a/source/blender/editors/io/io_gpencil_export.c b/source/blender/editors/io/io_gpencil_export.c index 98e30f51116..10e4e598bad 100644 --- a/source/blender/editors/io/io_gpencil_export.c +++ b/source/blender/editors/io/io_gpencil_export.c @@ -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 -- cgit v1.2.3