Fix T100899: Drag and Drop failing depending on window position
Regression introduced in rBbbf87c4f7509, which now relies on OS coordinates for Drag and Drop. These coordinates did not match on different OSs.
This commit is contained in:
parent
818c9e524d
commit
5f4db28c24
Notes:
blender-bot
2023-02-13 14:33:36 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3 Referenced by issue #100899, Regression: Drag and Drop seems to be broken for image files from desktop
|
@ -1123,6 +1123,7 @@ GHOST_TSuccess GHOST_SystemCocoa::handleDraggingEvent(GHOST_TEventType eventType
|
|||
case GHOST_kEventDraggingEntered:
|
||||
case GHOST_kEventDraggingUpdated:
|
||||
case GHOST_kEventDraggingExited:
|
||||
window->clientToScreenIntern(mouseX, mouseY, mouseX, mouseY);
|
||||
pushEvent(new GHOST_EventDragnDrop(
|
||||
getMilliSeconds(), eventType, draggedObjectType, window, mouseX, mouseY, NULL));
|
||||
break;
|
||||
|
@ -1331,6 +1332,8 @@ GHOST_TSuccess GHOST_SystemCocoa::handleDraggingEvent(GHOST_TEventType eventType
|
|||
return GHOST_kFailure;
|
||||
break;
|
||||
}
|
||||
|
||||
window->clientToScreenIntern(mouseX, mouseY, mouseX, mouseY);
|
||||
pushEvent(new GHOST_EventDragnDrop(
|
||||
getMilliSeconds(), eventType, draggedObjectType, window, mouseX, mouseY, eventData));
|
||||
|
||||
|
|
Loading…
Reference in New Issue