diff options
author | Hans Goudey <h.goudey@me.com> | 2021-03-24 18:33:30 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-03-24 18:33:39 +0300 |
commit | bf0454b78bce7609b74423bd47d3d76fdadb077f (patch) | |
tree | a223ead54849cb54b57a7ce750f2327f90fcb213 /source/blender/io/gpencil/intern/gpencil_io_capi.cc | |
parent | 80450331c7cc015f471dbafc3c783fafd1707cf5 (diff) |
Fix build error and warnings in new grease pencil IO code
Diffstat (limited to 'source/blender/io/gpencil/intern/gpencil_io_capi.cc')
-rw-r--r-- | source/blender/io/gpencil/intern/gpencil_io_capi.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/io/gpencil/intern/gpencil_io_capi.cc b/source/blender/io/gpencil/intern/gpencil_io_capi.cc index 34539a66fe8..231d23948ef 100644 --- a/source/blender/io/gpencil/intern/gpencil_io_capi.cc +++ b/source/blender/io/gpencil/intern/gpencil_io_capi.cc @@ -58,6 +58,7 @@ using blender::io::gpencil::GpencilExporterSVG; using blender::io::gpencil::GpencilImporterSVG; /* Check if frame is included. */ +#ifdef WITH_HARU static bool is_keyframe_included(bGPdata *gpd_, const int32_t framenum, const bool use_selected) { /* Check if exist a frame. */ @@ -75,6 +76,7 @@ static bool is_keyframe_included(bGPdata *gpd_, const int32_t framenum, const bo } return false; } +#endif /* Import frame. */ static bool gpencil_io_import_frame(void *in_importer, const GpencilIOParams &iparams) @@ -177,7 +179,7 @@ bool gpencil_io_export(const char *filename, GpencilIOParams *iparams) Scene *scene_ = CTX_data_scene(iparams->C); Object *ob = CTX_data_active_object(iparams->C); - UNUSED_VARS(depsgraph_, scene_, ob); + UNUSED_VARS(filename, depsgraph_, scene_, ob); switch (iparams->mode) { #ifdef WITH_PUGIXML |