diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-01-03 18:52:42 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-01-03 18:52:42 -0300 |
commit | 908f75c23fdd285523aeae3631b654f9b49c7b59 (patch) | |
tree | 853cad7c64f19cbf9976b076c777b070ac6c838d /tools/editor | |
parent | e8fbf39f886b2b5dbf5e14f07cd1dbefe8d48bf4 (diff) |
having active items is pointless in input map
Diffstat (limited to 'tools/editor')
-rw-r--r-- | tools/editor/project_settings.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/editor/project_settings.cpp b/tools/editor/project_settings.cpp index 174ec66f24..370b91cbba 100644 --- a/tools/editor/project_settings.cpp +++ b/tools/editor/project_settings.cpp @@ -107,6 +107,8 @@ void ProjectSettings::_action_persist_toggle() { String name="input/"+ti->get_text(0); bool prev = Globals::get_singleton()->is_persisting(name); + print_line("prev persist: "+itos(prev)); + print_line("new persist: "+itos(ti->is_checked(0))); if (prev==ti->is_checked(0)) return; @@ -428,7 +430,7 @@ void ProjectSettings::_update_actions() { continue; TreeItem *item=input_editor->create_item(root); - item->set_cell_mode(0,TreeItem::CELL_MODE_CHECK); + //item->set_cell_mode(0,TreeItem::CELL_MODE_CHECK); item->set_text(0,name); item->add_button(0,get_icon("Add","EditorIcons"),1); if (!Globals::get_singleton()->get_input_presets().find(pi.name)) { @@ -437,7 +439,7 @@ void ProjectSettings::_update_actions() { } item->set_custom_bg_color(0,get_color("prop_subsection","Editor")); item->set_editable(0,true); - item->set_checked(0,pi.usage&PROPERTY_USAGE_CHECKED); + //item->set_checked(0,pi.usage&PROPERTY_USAGE_CHECKED); |