Skip to content

Commit

Permalink
VOXELFORMAT: BLOCKBENCH: simplify animation activation
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Nov 3, 2024
1 parent 2a5b06e commit 7d22ce4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/voxelformat/private/mesh/BlockbenchFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ struct Animation {
core::DynamicArray<Animator> 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()) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7d22ce4

Please sign in to comment.