From ab276f6f08070d603a061b863225086c96c90733 Mon Sep 17 00:00:00 2001 From: shweet Date: Sat, 3 Oct 2026 18:42:50 -0400 Subject: [PATCH] Move INTERPOLATION_LABELS out of the model into the frame properties wizard Co-Authored-By: Claude Opus 5.5 --- src/imgui/window/frame_properties.cpp | 2 +- src/imgui/wizard/change_all_frame_properties.hpp | 3 +++ src/model/common.hpp | 3 --- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/imgui/window/frame_properties.cpp b/src/imgui/window/frame_properties.cpp index c242041..25c05b6 100644 --- a/src/imgui/window/frame_properties.cpp +++ b/src/imgui/window/frame_properties.cpp @@ -85,7 +85,7 @@ namespace anm2ed::imgui auto sounds = document.choices_get(SelectionKind::SOUNDS); auto shaders = document.choices_get(SelectionKind::SHADERS); std::vector interpolationLabels{}; - for (auto label : INTERPOLATION_LABELS) + for (auto label : wizard::INTERPOLATION_LABELS) interpolationLabels.push_back(localize.get(label)); auto mode_selector_draw = [&]() diff --git a/src/imgui/wizard/change_all_frame_properties.hpp b/src/imgui/wizard/change_all_frame_properties.hpp index 60fb2cc..9b56b53 100644 --- a/src/imgui/wizard/change_all_frame_properties.hpp +++ b/src/imgui/wizard/change_all_frame_properties.hpp @@ -6,6 +6,9 @@ namespace anm2ed::imgui::wizard { + inline constexpr StringType INTERPOLATION_LABELS[] = {BASIC_NONE, BASIC_LINEAR, BASIC_EASE_IN, BASIC_EASE_OUT, + BASIC_EASE_IN_OUT}; + class ChangeAllFrameProperties { public: diff --git a/src/model/common.hpp b/src/model/common.hpp index d691bb9..164ab11 100644 --- a/src/model/common.hpp +++ b/src/model/common.hpp @@ -191,9 +191,6 @@ namespace anm2ed std::optional isFlipY{}; }; - inline constexpr StringType INTERPOLATION_LABELS[] = {BASIC_NONE, BASIC_LINEAR, BASIC_EASE_IN, BASIC_EASE_OUT, - BASIC_EASE_IN_OUT}; - struct Reference { int animationIndex{-1};