From a542372642f873b9e85566b8168a5af4f2465957 Mon Sep 17 00:00:00 2001 From: mbalint12 Date: Mon, 1 May 2017 14:25:47 +0200 Subject: [PATCH] Make property editor display dictionaries (read only) --- editor/property_editor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index 666bfa20b5b..65889b7045e 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -3405,6 +3405,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::POOL_INT_ARRAY: {