aboutsummaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authormbalint122017-05-01 14:25:47 +0200
committermbalint122017-05-01 14:25:47 +0200
commita542372642f873b9e85566b8168a5af4f2465957 (patch)
tree441d12a397afd3effbd4ffb299f76eead84e6799 /editor
parent02c041904f7ced28cd2a006c09725fd9fd60520f (diff)
downloadgodot-a542372642f873b9e85566b8168a5af4f2465957.tar.gz
godot-a542372642f873b9e85566b8168a5af4f2465957.tar.zst
godot-a542372642f873b9e85566b8168a5af4f2465957.zip
Make property editor display dictionaries (read only)
Diffstat (limited to 'editor')
-rw-r--r--editor/property_editor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp
index 666bfa20b..65889b704 100644
--- a/editor/property_editor.cpp
+++ b/editor/property_editor.cpp
@@ -3406,6 +3406,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: {