Fix broken script reloading

This commit is contained in:
kobewi 2024-05-20 23:54:27 +02:00
parent 40b4130c93
commit eca19d6e80

View file

@ -987,7 +987,7 @@ bool GDScript::_get(const StringName &p_name, Variant &r_ret) const {
bool GDScript::_set(const StringName &p_name, const Variant &p_value) {
if (p_name == GDScriptLanguage::get_singleton()->strings._script_source) {
set_source_code(p_value);
reload();
reload(true);
return true;
}