diff options
| author | xDGameStudios <xdgamestudios@gmail.com> | 2019-01-11 13:31:08 +0000 |
|---|---|---|
| committer | Francisco Dias <Dias.FranciscoA@gmail.com> | 2019-01-11 13:31:08 +0000 |
| commit | f9788f75e59b9e7d9d056faaa13f399736830381 (patch) | |
| tree | 905897a1686378ee149e9573deb599b4985d1f40 /editor/editor_properties_array_dict.cpp | |
| parent | 27d77723811c2652c6118eca03a38c4ae1441895 (diff) | |
| download | redot-engine-f9788f75e59b9e7d9d056faaa13f399736830381.tar.gz | |
Add static types to arrays (inspector fix)
Diffstat (limited to 'editor/editor_properties_array_dict.cpp')
| -rw-r--r-- | editor/editor_properties_array_dict.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp index c4bca69222..f002f6d035 100644 --- a/editor/editor_properties_array_dict.cpp +++ b/editor/editor_properties_array_dict.cpp @@ -358,10 +358,14 @@ void EditorPropertyArray::update_property() { vbox->add_child(hb); hb->add_child(prop); prop->set_h_size_flags(SIZE_EXPAND_FILL); - Button *edit = memnew(Button); - edit->set_icon(get_icon("Edit", "EditorIcons")); - hb->add_child(edit); - edit->connect("pressed", this, "_change_type", varray(edit, i + offset)); + + if (subtype == Variant::NIL) { + Button *edit = memnew(Button); + edit->set_icon(get_icon("Edit", "EditorIcons")); + hb->add_child(edit); + edit->connect("pressed", this, "_change_type", varray(edit, i + offset)); + } + } else { vbox->add_child(prop); } |
