2
0
Эх сурвалжийг харах

Support signals and callables in exposed dictionaries

Jummit 2 жил өмнө
parent
commit
18e4b06162

+ 8 - 0
editor/editor_properties_array_dict.cpp

@@ -1051,6 +1051,14 @@ void EditorPropertyDictionary::update_property() {
 				case Variant::RID: {
 					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)) {