浏览代码

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
Bradley Clemetson 3 年之前
父节点
当前提交
4fd2706afd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/extension/native_extension.cpp

+ 1 - 1
core/extension/native_extension.cpp

@@ -405,7 +405,7 @@ RES NativeExtensionResourceLoader::load(const String &p_path, const String &p_or
 		return RES();
 		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);
 		library_path = p_path.get_base_dir().plus_file(library_path);
 	}
 	}