summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-05-10 13:38:41 +0200
committerGitHub <noreply@github.com>2022-05-10 13:38:41 +0200
commitb9b78fdaee9a55bb7d1741752ab1a84a325addba (patch)
treead7beb706d12d9114dd37822b01f8567e2cffc09
parent055ac8bb78dcd5e4496fc8c9b46fe05621a0fd94 (diff)
parent4fd2706afd6f601131f7d7d73f8b37d7a554d596 (diff)
Merge pull request #55876 from bradc6/feature/AllowForAbsoluteLibraryPaths
-rw-r--r--core/extension/native_extension.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/extension/native_extension.cpp b/core/extension/native_extension.cpp
index db1cbd53b4..5738b42049 100644
--- a/core/extension/native_extension.cpp
+++ b/core/extension/native_extension.cpp
@@ -426,7 +426,7 @@ Ref<Resource> NativeExtensionResourceLoader::load(const String &p_path, const St
return Ref<Resource>();
}
- 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);
}