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:
parent
d67c5a8e82
commit
d332a546c6
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue