summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBradley Clemetson <brad.clemetson@codeprogrammers.net>2021-12-12 13:11:28 -0800
committerBradley Clemetson <brad.clemetson@codeprogrammers.net>2021-12-23 14:20:07 -0800
commit4fd2706afd6f601131f7d7d73f8b37d7a554d596 (patch)
treed0aa72d7739462c34f5970eb73ecc02dc46f4804 /core
parentbd31af37b465f9d4730c18f6985645aa1b773396 (diff)
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
Diffstat (limited to 'core')
-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 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);
}