summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormbalint12 <gameshow841@gmail.com>2017-05-01 14:25:47 +0200
committermbalint12 <gameshow841@gmail.com>2017-05-01 14:25:47 +0200
commita542372642f873b9e85566b8168a5af4f2465957 (patch)
tree441d12a397afd3effbd4ffb299f76eead84e6799
parent02c041904f7ced28cd2a006c09725fd9fd60520f (diff)
Make property editor display dictionaries (read only)
-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 666bfa20b5..65889b7045 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: {