summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJummit <jummit@web.de>2023-01-20 16:32:16 +0100
committerJummit <jummit@web.de>2023-01-20 16:32:16 +0100
commit18e4b061620a8a6e776d2f611cdf7473ea3777f6 (patch)
tree8c654a204ff6da397b9d0ec6196d234fe5da4a82
parent14fdd28de9f1f9979cb6cffa4b715a16d406439d (diff)
Support signals and callables in exposed dictionaries
-rw-r--r--editor/editor_properties_array_dict.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp
index 28c0b047d8..8ba897ceda 100644
--- a/editor/editor_properties_array_dict.cpp
+++ b/editor/editor_properties_array_dict.cpp
@@ -1052,6 +1052,14 @@ void EditorPropertyDictionary::update_property() {
prop = memnew(EditorPropertyRID);
} break;
+ case Variant::SIGNAL: {
+ prop = memnew(EditorPropertySignal);
+
+ } break;
+ case Variant::CALLABLE: {
+ prop = memnew(EditorPropertyCallable);
+
+ } break;
case Variant::OBJECT: {
if (Object::cast_to<EncodedObjectAsID>(value)) {
EditorPropertyObjectID *editor = memnew(EditorPropertyObjectID);