Skip to content

Commit

Permalink
Merge pull request #8612 from magyar123/pr-show-dict-contents
Browse files Browse the repository at this point in the history
Make property editor display dictionaries (read only)
  • Loading branch information
akien-mga authored May 2, 2017
2 parents acaa01d + a542372 commit 5a6ccce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions editor/property_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3401,6 +3401,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: {
Expand Down

0 comments on commit 5a6ccce

Please sign in to comment.