aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/project_settings.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-12-15 23:40:29 -0300
committerJuan Linietsky2015-12-15 23:40:29 -0300
commit686c65a354535366ff22718b974e9dd0d25dbfdd (patch)
treecdffcb81d7e96333b04c6dd940de201b3ebf877f /tools/editor/project_settings.cpp
parenta1142225bf513e4afe0527ca604486d3988449cc (diff)
parent08cab3a17a4eba874c17cec41425f149846663a4 (diff)
downloadgodot-686c65a354535366ff22718b974e9dd0d25dbfdd.tar.gz
godot-686c65a354535366ff22718b974e9dd0d25dbfdd.tar.zst
godot-686c65a354535366ff22718b974e9dd0d25dbfdd.zip
Merge branch 'master' of https://github.com/godotengine/godot
Diffstat (limited to 'tools/editor/project_settings.cpp')
-rw-r--r--tools/editor/project_settings.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/editor/project_settings.cpp b/tools/editor/project_settings.cpp
index e994b7524..879fe1bda 100644
--- a/tools/editor/project_settings.cpp
+++ b/tools/editor/project_settings.cpp
@@ -427,9 +427,10 @@ void ProjectSettings::_update_actions() {
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))
+ if (!Globals::get_singleton()->get_input_presets().find(pi.name)) {
item->add_button(0,get_icon("Rename","EditorIcons"),2);
- item->add_button(0,get_icon("Remove","EditorIcons"),3);
+ item->add_button(0,get_icon("Remove","EditorIcons"),3);
+ }
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);