summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-08 22:36:10 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-08 22:36:10 +0100
commit0081c591989a27f0d654927ad59f890a0ab41012 (patch)
treefa75bc7f4d1d88d62d8c9861682f87fc302b479a
parentfcba87e696d58912838d8a4a6987b10efa28e78f (diff)
parent411719a3992b762a751cab54d17259a06356a99b (diff)
Merge pull request #71013 from voidedWarranties/fix_ext_property_default_value
Fix `ScriptInstanceExtension::get_property_default_value` return value
-rw-r--r--core/object/script_language_extension.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/object/script_language_extension.h b/core/object/script_language_extension.h
index b705d13cd6..912f2218c4 100644
--- a/core/object/script_language_extension.h
+++ b/core/object/script_language_extension.h
@@ -125,7 +125,8 @@ public:
}
Variant ret;
GDVIRTUAL_REQUIRED_CALL(_get_property_default_value, p_property, ret);
- return ret;
+ r_value = ret;
+ return true;
}
EXBIND0(update_exports)