Fix build error and warnings in new grease pencil IO code

This commit is contained in:
Hans Goudey 2021-03-24 11:33:30 -04:00
parent 80450331c7
commit bf0454b78b
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -35,8 +35,6 @@
#include "gpencil_io_import_base.h"
#include "pugixml.hpp"
namespace blender::io::gpencil {
/* Constructor. */