浏览代码

[macOS] Fix drag-and-drop feedback.

bruvzg 1 年之前
父节点
当前提交
c8447724e5
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      platform/macos/godot_content_view.mm

+ 2 - 1
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;