EditorPropertyText, pass changing variable false.

When the `EditorPropertyText`  change is triggered, it pass the `changing` as true, while there is an early return that blocks such event to be emitted when the Editor is updating.
This commit aligns the early return with the passes parameter.
This commit is contained in:
Andrea Catania 2021-08-30 11:34:01 +02:00 committed by GitHub
parent d67c5a8e82
commit d332a546c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,9 @@
/*************************************************************************/
/* Copyright (c) 2007-2021 Juan Linietsky, Ariel Manzur. */
/* Copyright (c) 2014-2021 Godot Engine contributors (cf. AUTHORS.md). */
/* */
/*
*/
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
@ -68,9 +70,9 @@ void EditorPropertyText::_text_changed(const String &p_string) {
}
if (string_name) {
emit_changed(get_edited_property(), StringName(p_string), "", true);
emit_changed(get_edited_property(), StringName(p_string));
} else {
emit_changed(get_edited_property(), p_string, "", true);
emit_changed(get_edited_property(), p_string);
}
}