From 4fd2706afd6f601131f7d7d73f8b37d7a554d596 Mon Sep 17 00:00:00 2001 From: Bradley Clemetson Date: Sun, 12 Dec 2021 13:11:28 -0800 Subject: If a gdextension library filepath is an absolute path do not attempt to append the base directory on top of that. While this is a uncommon if not unused case for a release version it is helpful for development builds. Fix formatting --- core/extension/native_extension.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/extension/native_extension.cpp b/core/extension/native_extension.cpp index a6b0a708c3..8d47448b0e 100644 --- a/core/extension/native_extension.cpp +++ b/core/extension/native_extension.cpp @@ -405,7 +405,7 @@ RES NativeExtensionResourceLoader::load(const String &p_path, const String &p_or return RES(); } - if (!library_path.is_resource_file()) { + if (!library_path.is_resource_file() && !library_path.is_absolute_path()) { library_path = p_path.get_base_dir().plus_file(library_path); } -- cgit v1.2.3