Skip to content

Commit

Permalink
Merge pull request godotengine#94232 from bruvzg/macos_dnd
Browse files Browse the repository at this point in the history
[macOS] Fix drag-and-drop feedback.
  • Loading branch information
akien-mga committed Jul 11, 2024
2 parents af33276 + c844772 commit 97b8ad1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/macos/godot_content_view.mm
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,9 @@ - (BOOL)performDragOperation:(id<NSDraggingInfo>)sender {
Callable::CallError ce;
wd.drop_files_callback.callp((const Variant **)&v_args, 1, ret, ce);
if (ce.error != Callable::CallError::CALL_OK) {
ERR_PRINT(vformat("Failed to execute drop files callback: %s.", Variant::get_callable_error_text(wd.drop_files_callback, v_args, 1, ce)));
ERR_FAIL_V_MSG(NO, vformat("Failed to execute drop files callback: %s.", Variant::get_callable_error_text(wd.drop_files_callback, v_args, 1, ce)));
}
return YES;
}

return NO;
Expand Down

0 comments on commit 97b8ad1

Please sign in to comment.