fixed frame drag/drop
This commit is contained in:
@@ -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{};
|
||||
|
||||
Reference in New Issue
Block a user