summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-02-21 09:12:31 +0100
committerGitHub <noreply@github.com>2018-02-21 09:12:31 +0100
commit3658fb000be9ae39d2af0d2e90b6fb4da50490cb (patch)
tree4ea67b4f8d6ea321dff23a2bcea904dce7791165
parent57d562b394730649266f902db63d63b448dc1d6e (diff)
parent0d13eb42250da072f550ce8b563d5a0b807b1ff3 (diff)
Merge pull request #16869 from YeldhamDev/remote_relationship_lines
Fixed Remote Tree not drawing relationship lines unless the setting is changed
-rw-r--r--editor/script_editor_debugger.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp
index af44c56074..4fc73b2a8e 100644
--- a/editor/script_editor_debugger.cpp
+++ b/editor/script_editor_debugger.cpp
@@ -965,6 +965,14 @@ void ScriptEditorDebugger::_notification(int p_what) {
reason->add_color_override("font_color", get_color("error_color", "Editor"));
+ 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) {
+ inspect_scene_tree->add_constant_override("draw_relationship_lines", 1);
+ inspect_scene_tree->add_color_override("relationship_line_color", rl_color);
+ } else
+ inspect_scene_tree->add_constant_override("draw_relationship_lines", 0);
} break;
case NOTIFICATION_PROCESS: {