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
This commit is contained in:
Bradley Clemetson 2021-12-12 13:11:28 -08:00
parent bd31af37b4
commit 4fd2706afd
No known key found for this signature in database
GPG key ID: 374B0EAFF7F488D0

View file

@ -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);
}