From 8564e945471d84daef37a74683518dad9db8c49c Mon Sep 17 00:00:00 2001 From: Chris Clyne Date: Sat, 20 Apr 2024 21:08:11 +0100 Subject: [PATCH] GDExtension: Fix missing library path breaking hot reloading --- core/extension/gdextension.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/extension/gdextension.cpp b/core/extension/gdextension.cpp index 546c40e9cbf..b1e94ead8dc 100644 --- a/core/extension/gdextension.cpp +++ b/core/extension/gdextension.cpp @@ -736,6 +736,8 @@ Error GDExtension::open_library(const String &p_path, const String &p_entry_symb // If temporary files are generated, let's change the library path to point at the original, // because that's what we want to check to see if it's changed. library_path = actual_lib_path.get_base_dir().path_join(p_path.get_file()); + } else { + library_path = p_path; } ERR_FAIL_COND_V_MSG(err == ERR_FILE_NOT_FOUND, err, "GDExtension dynamic library not found: " + abs_path);