Timeline: drop per-frame callback rebinding and duplicated helpers
- TimelineState base carries persistent state; TimelineContext no longer copies 50 references - 111 per-frame std::function lambdas become member functions - Delete wrappers that re-implemented anm2 helpers - One snapshot/edit push path, one theme color lookup, shared frame grouping/refocus/trigger filters - Row building and bake targets loop over TRACK_CONTAINERS - Split commands.cpp into selection.cpp, edit.cpp and menus.cpp Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d926fc6677
commit
30ea363c39
10 files changed
+2586
-2942
No files matched your search
@@ -57,10 +57,8 @@ namespace anm2ed::imgui
|
||||
ALL
|
||||
};
|
||||
|
||||
class Timeline
|
||||
struct TimelineState
|
||||
{
|
||||
friend struct TimelineContext;
|
||||
|
||||
bool isDragging{};
|
||||
bool isWindowHovered{};
|
||||
bool isHorizontalScroll{};
|
||||
@@ -110,6 +108,10 @@ namespace anm2ed::imgui
|
||||
std::vector<TimelineRowReference> rowDragReferences{};
|
||||
glm::vec2 scroll{};
|
||||
ImGuiStyle style{};
|
||||
};
|
||||
|
||||
class Timeline
|
||||
{
|
||||
std::unique_ptr<TimelineContext> context{};
|
||||
|
||||
public:
|
||||
|
||||
Reference in new issue
Block a user