diff options
author | Abel Toy <abeltoy@hey.com> | 2023-10-07 19:32:08 +0900 |
---|---|---|
committer | Abel Toy <abeltoy@hey.com> | 2024-03-06 16:17:54 +0900 |
commit | 882441a0ad00fed66bf5d0859e36e7f369d9d509 (patch) | |
tree | 4ba0feb24ecf6fb99b91126f4328ed56a7f779ed /editor/editor_properties.cpp | |
parent | f2045ba822bff7d34964901393581a3117c394a9 (diff) | |
download | redot-engine-882441a0ad00fed66bf5d0859e36e7f369d9d509.tar.gz |
Support Array and PackedArray in @export_*
Diffstat (limited to 'editor/editor_properties.cpp')
-rw-r--r-- | editor/editor_properties.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 73a0768a72..01455fec17 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -3869,27 +3869,27 @@ EditorProperty *EditorInspectorDefaultPlugin::get_editor_for_property(Object *p_ } break; case Variant::PACKED_BYTE_ARRAY: { EditorPropertyArray *editor = memnew(EditorPropertyArray); - editor->setup(Variant::PACKED_BYTE_ARRAY); + editor->setup(Variant::PACKED_BYTE_ARRAY, p_hint_text); return editor; } break; case Variant::PACKED_INT32_ARRAY: { EditorPropertyArray *editor = memnew(EditorPropertyArray); - editor->setup(Variant::PACKED_INT32_ARRAY); + editor->setup(Variant::PACKED_INT32_ARRAY, p_hint_text); return editor; } break; case Variant::PACKED_INT64_ARRAY: { EditorPropertyArray *editor = memnew(EditorPropertyArray); - editor->setup(Variant::PACKED_INT64_ARRAY); + editor->setup(Variant::PACKED_INT64_ARRAY, p_hint_text); return editor; } break; case Variant::PACKED_FLOAT32_ARRAY: { EditorPropertyArray *editor = memnew(EditorPropertyArray); - editor->setup(Variant::PACKED_FLOAT32_ARRAY); + editor->setup(Variant::PACKED_FLOAT32_ARRAY, p_hint_text); return editor; } break; case Variant::PACKED_FLOAT64_ARRAY: { EditorPropertyArray *editor = memnew(EditorPropertyArray); - editor->setup(Variant::PACKED_FLOAT64_ARRAY); + editor->setup(Variant::PACKED_FLOAT64_ARRAY, p_hint_text); return editor; } break; case Variant::PACKED_STRING_ARRAY: { @@ -3899,17 +3899,17 @@ EditorProperty *EditorInspectorDefaultPlugin::get_editor_for_property(Object *p_ } break; case Variant::PACKED_VECTOR2_ARRAY: { EditorPropertyArray *editor = memnew(EditorPropertyArray); - editor->setup(Variant::PACKED_VECTOR2_ARRAY); + editor->setup(Variant::PACKED_VECTOR2_ARRAY, p_hint_text); return editor; } break; case Variant::PACKED_VECTOR3_ARRAY: { EditorPropertyArray *editor = memnew(EditorPropertyArray); - editor->setup(Variant::PACKED_VECTOR3_ARRAY); + editor->setup(Variant::PACKED_VECTOR3_ARRAY, p_hint_text); return editor; } break; case Variant::PACKED_COLOR_ARRAY: { EditorPropertyArray *editor = memnew(EditorPropertyArray); - editor->setup(Variant::PACKED_COLOR_ARRAY); + editor->setup(Variant::PACKED_COLOR_ARRAY, p_hint_text); return editor; } break; default: { |