diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-30 09:26:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 09:26:11 +0200 |
commit | 183438e13b5277853170aaf24b6e6dc70fc7f4c7 (patch) | |
tree | c368365ba7fe229c07320fff0d4289a01a4a3f8b | |
parent | 992104bc12fe9ff4222acc325bb69a439eb5448f (diff) | |
parent | 0e3097c023fa4562d44fa102bd2ef8e456f8901a (diff) |
Merge pull request #65060 from Atlinx/feat/65059_fix-doc-error
-rw-r--r-- | doc/classes/EditorProperty.xml | 2 | ||||
-rw-r--r-- | editor/editor_inspector.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/classes/EditorProperty.xml b/doc/classes/EditorProperty.xml index 67204f2a15..7bac4bf7ac 100644 --- a/doc/classes/EditorProperty.xml +++ b/doc/classes/EditorProperty.xml @@ -105,6 +105,8 @@ <signal name="property_changed"> <param index="0" name="property" type="StringName" /> <param index="1" name="value" type="Variant" /> + <param index="2" name="field" type="StringName" /> + <param index="3" name="changing" type="bool" /> <description> Do not emit this manually, use the [method emit_changed] method instead. </description> diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 8716196658..5033f842d5 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -961,7 +961,7 @@ void EditorProperty::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::BOOL, "keying"), "set_keying", "is_keying"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "deletable"), "set_deletable", "is_deletable"); - ADD_SIGNAL(MethodInfo("property_changed", PropertyInfo(Variant::STRING_NAME, "property"), PropertyInfo(Variant::NIL, "value", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NIL_IS_VARIANT))); + ADD_SIGNAL(MethodInfo("property_changed", PropertyInfo(Variant::STRING_NAME, "property"), PropertyInfo(Variant::NIL, "value", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NIL_IS_VARIANT), PropertyInfo(Variant::STRING_NAME, "field"), PropertyInfo(Variant::BOOL, "changing"))); ADD_SIGNAL(MethodInfo("multiple_properties_changed", PropertyInfo(Variant::PACKED_STRING_ARRAY, "properties"), PropertyInfo(Variant::ARRAY, "value"))); ADD_SIGNAL(MethodInfo("property_keyed", PropertyInfo(Variant::STRING_NAME, "property"))); ADD_SIGNAL(MethodInfo("property_deleted", PropertyInfo(Variant::STRING_NAME, "property"))); |