From 61b41d6001492527753b7047989d38ffd085a9de Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 24 Feb 2019 10:50:43 -0300 Subject: [PATCH] Ensure all properties are refreshed when setting a script, fixes #24845 --- core/object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/object.cpp b/core/object.cpp index 4e0416ccb04..c46ecc5193a 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -1014,7 +1014,7 @@ void Object::set_script(const RefPtr &p_script) { } } - _change_notify("script"); + _change_notify(); //scripts may add variables, so refresh is desired emit_signal(CoreStringNames::get_singleton()->script_changed); }