From f624acef429745b74989c38f646b627cacf19bd2 Mon Sep 17 00:00:00 2001 From: Atlinx Date: Mon, 29 Aug 2022 18:27:43 -0400 Subject: [PATCH] Add missing parameters for signal in docs (cherry picked from commit 0e3097c023fa4562d44fa102bd2ef8e456f8901a) --- doc/classes/EditorProperty.xml | 2 ++ editor/editor_inspector.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/classes/EditorProperty.xml b/doc/classes/EditorProperty.xml index 9c0c2555c87..4c65029df4b 100644 --- a/doc/classes/EditorProperty.xml +++ b/doc/classes/EditorProperty.xml @@ -90,6 +90,8 @@ + + Do not emit this manually, use the [method emit_changed] method instead. diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index c0257cbfcc4..9832db63268 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -758,7 +758,7 @@ void EditorProperty::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::BOOL, "checked"), "set_checked", "is_checked"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "draw_red"), "set_draw_red", "is_draw_red"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "keying"), "set_keying", "is_keying"); - ADD_SIGNAL(MethodInfo("property_changed", PropertyInfo(Variant::STRING, "property"), PropertyInfo(Variant::NIL, "value", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NIL_IS_VARIANT))); + ADD_SIGNAL(MethodInfo("property_changed", PropertyInfo(Variant::STRING, "property"), PropertyInfo(Variant::NIL, "value", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NIL_IS_VARIANT), PropertyInfo(Variant::STRING, "field"), PropertyInfo(Variant::BOOL, "changing"))); ADD_SIGNAL(MethodInfo("multiple_properties_changed", PropertyInfo(Variant::POOL_STRING_ARRAY, "properties"), PropertyInfo(Variant::ARRAY, "value"))); ADD_SIGNAL(MethodInfo("property_keyed", PropertyInfo(Variant::STRING, "property"))); ADD_SIGNAL(MethodInfo("property_keyed_with_value", PropertyInfo(Variant::STRING, "property"), PropertyInfo(Variant::NIL, "value", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NIL_IS_VARIANT)));