fixed frame drag/drop

This commit is contained in:
2026-05-02 12:44:23 -04:00
parent fba8edb569
commit 7116298668
5 changed files with 200 additions and 110 deletions
+6 -10
View File
@@ -10,18 +10,15 @@
namespace anm2ed::imgui
{
struct FrameDragDrop
{
anm2::Type type{anm2::NONE};
int itemID{-1};
int animationIndex{-1};
};
struct FrameDragDropPayload
struct FrameMoveDrag
{
anm2::Type type{anm2::NONE};
int itemID{-1};
int animationIndex{-1};
int frameIndex{-1};
int duration{1};
std::vector<int> indices{};
bool isActive{};
};
class Timeline
@@ -44,8 +41,7 @@ namespace anm2ed::imgui
bool isDraggedFrameSnapshot{};
bool frameFocusRequested{};
int frameFocusIndex{-1};
FrameDragDrop frameDragDrop{};
FrameDragDropPayload frameDragDropPayload{};
FrameMoveDrag frameMoveDrag{};
std::vector<int> frameSelectionSnapshot{};
std::vector<int> frameSelectionLocked{};
bool isFrameSelectionLocked{};