From 402b3d146a98ff11bab44b0823502b7942ba4fad Mon Sep 17 00:00:00 2001
From: RedworkDE <10944644+RedworkDE@users.noreply.github.com>
Date: Mon, 22 May 2023 00:14:55 +0200
Subject: [PATCH] Bind forgotten default value for `GDExtension::open_library`
argument
---
core/extension/gdextension.cpp | 2 +-
doc/classes/GDExtension.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/extension/gdextension.cpp b/core/extension/gdextension.cpp
index 942ec956788..128bdcc78ca 100644
--- a/core/extension/gdextension.cpp
+++ b/core/extension/gdextension.cpp
@@ -524,7 +524,7 @@ void GDExtension::deinitialize_library(InitializationLevel p_level) {
}
void GDExtension::_bind_methods() {
- ClassDB::bind_method(D_METHOD("open_library", "path", "entry_symbol", "use_legacy_interface"), &GDExtension::open_library);
+ ClassDB::bind_method(D_METHOD("open_library", "path", "entry_symbol", "use_legacy_interface"), &GDExtension::open_library, DEFVAL(false));
ClassDB::bind_compatibility_method(D_METHOD("open_library", "path", "entry_symbol"), &GDExtension::open_library_compat_76406);
ClassDB::bind_method(D_METHOD("close_library"), &GDExtension::close_library);
ClassDB::bind_method(D_METHOD("is_library_open"), &GDExtension::is_library_open);
diff --git a/doc/classes/GDExtension.xml b/doc/classes/GDExtension.xml
index 4c2bcde6081..762de88be6b 100644
--- a/doc/classes/GDExtension.xml
+++ b/doc/classes/GDExtension.xml
@@ -32,7 +32,7 @@
-
+