diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-05-02 11:33:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-02 11:33:05 +0200 |
commit | 5a6ccce97d350011b599e793cea95aa4e7899395 (patch) | |
tree | 58bc1133b546c9615f025a6f9120eefcb3c1e29f | |
parent | acaa01dfa76fcf538c4aba993e9ac0ae1dde9b5d (diff) | |
parent | a542372642f873b9e85566b8168a5af4f2465957 (diff) |
Merge pull request #8612 from magyar123/pr-show-dict-contents
Make property editor display dictionaries (read only)
-rw-r--r-- | editor/property_editor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index e2733037a9..5ff5e680f6 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -3402,6 +3402,13 @@ void PropertyEditor::update_tree() { 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: { |