From 30ad7b611a365e18fd86ecf0500984bfc5cf5172 Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Sun, 5 Apr 2026 19:53:00 +0300 Subject: [PATCH] Fix assert when trying to drag item from a dropdown box --- Source/Engine/Platform/SDL/SDLPlatform.Mac.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Engine/Platform/SDL/SDLPlatform.Mac.cpp b/Source/Engine/Platform/SDL/SDLPlatform.Mac.cpp index 4d920d4b5..18ada2c62 100644 --- a/Source/Engine/Platform/SDL/SDLPlatform.Mac.cpp +++ b/Source/Engine/Platform/SDL/SDLPlatform.Mac.cpp @@ -421,7 +421,11 @@ DragDropEffect SDLWindow::DoDragDrop(const StringView& data) DragDropEffect result = DragDropEffect::None; #if USE_EDITOR - ASSERT(!MacImpl::MacDragSession); + //ASSERT(!MacImpl::MacDragSession); + // TODO: Dragging item from dropdown box in a floating window attempts to init dragging twice + if (MacImpl::MacDragSession != nullptr) + return result; + MacImpl::MacDragSession = draggingSession; MacImpl::MacDragExitFlag = 0; MacImpl::DraggingData = data;