Browse Source

Fix broken script reloading

kobewi 1 year ago
parent
commit
eca19d6e80
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/gdscript/gdscript.cpp

+ 1 - 1
modules/gdscript/gdscript.cpp

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