Explorar o código

Ensure all properties are refreshed when setting a script, fixes #24845

Juan Linietsky %!s(int64=6) %!d(string=hai) anos
pai
achega
61b41d6001
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/object.cpp

+ 1 - 1
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);
 }