Fix RichTextLabel custom_effects export to be properly filtered in the Editor

This commit is contained in:
Eric M
2021-06-25 22:55:26 +10:00
parent fdccc0b219
commit cfbdaa2eb7
2 changed files with 3 additions and 1 deletions

View File

@ -550,6 +550,8 @@ void EditorPropertyArray::_length_changed(double p_page) {
void EditorPropertyArray::setup(Variant::Type p_array_type, const String &p_hint_string) {
array_type = p_array_type;
// The format of p_hint_string is:
// subType/subTypeHint:nextSubtype ... etc
if (array_type == Variant::ARRAY && !p_hint_string.is_empty()) {
int hint_subtype_separator = p_hint_string.find(":");
if (hint_subtype_separator >= 0) {