diff options
author | Andrea Catania <info@andreacatania.com> | 2021-08-30 11:34:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 11:34:01 +0200 |
commit | d332a546c60f3f46e1b3a6f195a2ed7a8b3aec6c (patch) | |
tree | ec6e45556420288243db87c9ef93685290d02097 /editor | |
parent | d67c5a8e82df7c2840efa1238b7f673027fe0282 (diff) |
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.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_properties.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 99619cfc40..a2015585f2 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -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); } } |