mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 13:43:15 +00:00
Merge pull request #8612 from magyar123/pr-show-dict-contents
Make property editor display dictionaries (read only)
This commit is contained in:
commit
5a6ccce97d
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user