Sfoglia il codice sorgente

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.
Andrea Catania 4 anni fa
parent
commit
d332a546c6
1 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. 5 3
      editor/editor_properties.cpp

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