Make property editor display dictionaries (read only)

(cherry picked from commit a542372642)
This commit is contained in:
mbalint12 2017-05-01 14:25:47 +02:00 committed by Rémi Verschelde
parent 6cf507f004
commit 8eba737992

View file

@ -2990,6 +2990,13 @@ void PropertyEditor::update_tree() {
if (show_type_icons)
item->set_icon(0, get_icon("ArrayData", "EditorIcons"));
} break;
case Variant::DICTIONARY: {
item->set_cell_mode(1, TreeItem::CELL_MODE_STRING);
item->set_editable(1, false);
item->set_text(1, obj->get(p.name).operator String());
} break;
case Variant::INT_ARRAY: {