aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_settings.cpp
diff options
context:
space:
mode:
authorUgisBrekis2016-06-15 18:10:19 +0100
committerUgisBrekis2016-06-15 18:10:19 +0100
commitd97e46ffb6e2e449f958296480d52ab5bd779d0d (patch)
tree364fdedbd000eb21e988de69e307cb1e56ac0ba4 /tools/editor/editor_settings.cpp
parent367aabf03080da8e4e72c9db56b0b2097c86d6b4 (diff)
downloadgodot-d97e46ffb6e2e449f958296480d52ab5bd779d0d.tar.gz
godot-d97e46ffb6e2e449f958296480d52ab5bd779d0d.tar.zst
godot-d97e46ffb6e2e449f958296480d52ab5bd779d0d.zip
Adds the ability to draw parent-children relationship lines in scene tree editor
Can be turned on/off in editor settings + line color change available as well
Diffstat (limited to 'tools/editor/editor_settings.cpp')
-rw-r--r--tools/editor/editor_settings.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/editor/editor_settings.cpp b/tools/editor/editor_settings.cpp
index 0d0008fcb..5756b7485 100644
--- a/tools/editor/editor_settings.cpp
+++ b/tools/editor/editor_settings.cpp
@@ -381,7 +381,7 @@ void EditorSettings::create() {
singleton->save_changed_setting=true;
singleton->config_file_path=config_file_path;
singleton->settings_path=config_path+"/"+config_dir;
- singleton->_load_defaults(extra_config);
+ singleton->_load_defaults(extra_config);
singleton->setup_language();
singleton->setup_network();
singleton->list_text_editor_themes();
@@ -563,6 +563,8 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
hints["scenetree_editor/duplicate_node_name_num_separator"]=PropertyInfo(Variant::INT,"scenetree_editor/duplicate_node_name_num_separator",PROPERTY_HINT_ENUM, "None,Space,Underscore,Dash");
//set("scenetree_editor/display_old_action_buttons",false);
set("scenetree_editor/start_create_dialog_fully_expanded",false);
+ set("scenetree_editor/draw_relationship_lines",false);
+ set("scenetree_editor/relationship_line_color",Color::html("464646"));
set("gridmap_editor/pick_distance", 5000.0);