summaryrefslogtreecommitdiffstats
path: root/platform/macos/godot_content_view.mm
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2024-07-11 23:13:18 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-07-11 23:13:38 +0300
commitc8447724e51b60aad603f0bb2478496a06b43fcf (patch)
tree2dae082aa96a14c2fdf8a3c982f9f93aee047c1b /platform/macos/godot_content_view.mm
parent383a6e4ef285fddcb0e1cbe28a20332c7e5a815b (diff)
downloadredot-engine-c8447724e51b60aad603f0bb2478496a06b43fcf.tar.gz
[macOS] Fix drag-and-drop feedback.
Diffstat (limited to 'platform/macos/godot_content_view.mm')
-rw-r--r--platform/macos/godot_content_view.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/macos/godot_content_view.mm b/platform/macos/godot_content_view.mm
index 77f3a28ae7..7d43ac9fe6 100644
--- a/platform/macos/godot_content_view.mm
+++ b/platform/macos/godot_content_view.mm
@@ -329,8 +329,9 @@
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;