From 7d22ce47360774d8e81be4d3b13b3942e5abfaf9 Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Sun, 3 Nov 2024 21:10:09 +0100 Subject: [PATCH] VOXELFORMAT: BLOCKBENCH: simplify animation activation --- src/modules/voxelformat/private/mesh/BlockbenchFormat.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/voxelformat/private/mesh/BlockbenchFormat.cpp b/src/modules/voxelformat/private/mesh/BlockbenchFormat.cpp index 0224d326e8..4f92161f09 100644 --- a/src/modules/voxelformat/private/mesh/BlockbenchFormat.cpp +++ b/src/modules/voxelformat/private/mesh/BlockbenchFormat.cpp @@ -63,7 +63,8 @@ struct Animation { core::DynamicArray animators; }; -#if 0 +#define BLOCKBENCH_ANIMATION 1 +#if BLOCKBENCH_ANIMATION static inline scenegraph::InterpolationType toInterpolationType(const nlohmann::json &json, const char *key, const scenegraph::InterpolationType defaultValue = scenegraph::InterpolationType::Linear) { const std::string val = json.value(key, ""); if (val.empty()) { @@ -516,7 +517,7 @@ static bool parseAnimations(const core::String &filename, const BlockbenchFormat continue; } sceneGraph.addAnimation(animationName); -#if 0 +#if BLOCKBENCH_ANIMATION priv::Animation animation; animation.uuid = json::toStr(animationJson, "uuid"); animation.name = animationName;