Merge pull request #71740 from Jummit/dict-array-missing-types

Support signals and callables in exposed dictionaries
This commit is contained in:
Rémi Verschelde 2023-02-11 22:04:02 +01:00
commit 5ba53d0b36
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 8 additions and 0 deletions

View File

@ -1008,6 +1008,14 @@ void EditorPropertyDictionary::update_property() {
case Variant::RID: { case Variant::RID: {
prop = memnew(EditorPropertyRID); prop = memnew(EditorPropertyRID);
} break;
case Variant::SIGNAL: {
prop = memnew(EditorPropertySignal);
} break;
case Variant::CALLABLE: {
prop = memnew(EditorPropertyCallable);
} break; } break;
case Variant::OBJECT: { case Variant::OBJECT: {
if (Object::cast_to<EncodedObjectAsID>(value)) { if (Object::cast_to<EncodedObjectAsID>(value)) {