fix dragging frames and moving
This commit is contained in:
@@ -825,7 +825,7 @@ namespace anm2ed::imgui
|
||||
|
||||
if (type != anm2::TRIGGER)
|
||||
{
|
||||
if (ImGui::BeginDragDropSource(ImGuiDragDropFlags_SourceNoPreviewTooltip))
|
||||
if (!draggedFrame && ImGui::BeginDragDropSource(ImGuiDragDropFlags_SourceNoPreviewTooltip))
|
||||
{
|
||||
frameDragDrop = {};
|
||||
frameDragDrop.type = type;
|
||||
@@ -870,7 +870,7 @@ namespace anm2ed::imgui
|
||||
ImGui::EndDragDropSource();
|
||||
}
|
||||
|
||||
if (ImGui::BeginDragDropTarget())
|
||||
if (!draggedFrame && ImGui::BeginDragDropTarget())
|
||||
{
|
||||
if (auto payload = ImGui::AcceptDragDropPayload(FRAME_DRAG_PAYLOAD_ID))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user