Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2021-03-25 18:06:24 +0300
committerAntonio Vazquez <blendergit@gmail.com>2021-03-25 18:06:31 +0300
commit5ebe74e77903dc97472cbee3f708044da6329102 (patch)
treeaf8ff5206dd56e40e9217c920da8ea93513ed0c4 /source/blender/editors/io
parent1d7adb6d8a3ee9126b9361f652da89f014bef423 (diff)
GPencil: Fix compiler warning when HARU and PUGIXML are disabled
The function only must be included if Haru or Pugixml is enabled.
Diffstat (limited to 'source/blender/editors/io')
-rw-r--r--source/blender/editors/io/io_gpencil_export.c2
1 files changed, 2 insertions, 0 deletions
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