aboutsummaryrefslogtreecommitdiff
path: root/editor/create_dialog.cpp
diff options
context:
space:
mode:
authorMichael Alexsander Silva Dias2017-11-16 20:24:33 -0200
committerMichael Alexsander Silva Dias2017-11-16 20:24:33 -0200
commit496e4e0d2f310fe603cd683c197e247431a48b4a (patch)
tree6ef5112bd03c6554f51a017180b213c9ec8c9097 /editor/create_dialog.cpp
parentc7f7dd3e3e3592264a05e0dc7ee5f1ea37fad738 (diff)
downloadgodot-496e4e0d2f310fe603cd683c197e247431a48b4a.tar.gz
godot-496e4e0d2f310fe603cd683c197e247431a48b4a.tar.zst
godot-496e4e0d2f310fe603cd683c197e247431a48b4a.zip
Diffstat (limited to 'editor/create_dialog.cpp')
-rw-r--r--editor/create_dialog.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp
index 95b4f7e98..02af304dc 100644
--- a/editor/create_dialog.cpp
+++ b/editor/create_dialog.cpp
@@ -97,6 +97,15 @@ void CreateDialog::popup_create(bool p_dontclear) {
search_box->grab_focus();
_update_search();
+
+ bool enable_rl = EditorSettings::get_singleton()->get("docks/scene_tree/draw_relationship_lines");
+ Color rl_color = EditorSettings::get_singleton()->get("docks/scene_tree/relationship_line_color");
+
+ if (enable_rl) {
+ search_options->add_constant_override("draw_relationship_lines", 1);
+ search_options->add_color_override("relationship_line_color", rl_color);
+ } else
+ search_options->add_constant_override("draw_relationship_lines", 0);
}
void CreateDialog::_text_changed(const String &p_newtext) {