Move INTERPOLATION_LABELS out of the model into the frame properties wizard

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-03 18:42:50 -04:00
1 parent 36869918e5
commit ab276f6f08
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ namespace anm2ed::imgui
auto sounds = document.choices_get(SelectionKind::SOUNDS); auto sounds = document.choices_get(SelectionKind::SOUNDS);
auto shaders = document.choices_get(SelectionKind::SHADERS); auto shaders = document.choices_get(SelectionKind::SHADERS);
std::vector<const char*> interpolationLabels{}; std::vector<const char*> interpolationLabels{};
for (auto label : INTERPOLATION_LABELS) for (auto label : wizard::INTERPOLATION_LABELS)
interpolationLabels.push_back(localize.get(label)); interpolationLabels.push_back(localize.get(label));
auto mode_selector_draw = [&]() auto mode_selector_draw = [&]()
@@ -6,6 +6,9 @@
namespace anm2ed::imgui::wizard 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 class ChangeAllFrameProperties
{ {
public: public:
-3
View File
@@ -191,9 +191,6 @@ namespace anm2ed
std::optional<bool> isFlipY{}; std::optional<bool> isFlipY{};
}; };
inline constexpr StringType INTERPOLATION_LABELS[] = {BASIC_NONE, BASIC_LINEAR, BASIC_EASE_IN, BASIC_EASE_OUT,
BASIC_EASE_IN_OUT};
struct Reference struct Reference
{ {
int animationIndex{-1}; int animationIndex{-1};