Merge pull request #16869 from YeldhamDev/remote_relationship_lines

Fixed Remote Tree not drawing relationship lines unless the setting is changed
This commit is contained in:
Rémi Verschelde 2018-02-21 09:12:31 +01:00 committed by GitHub
commit 3658fb000b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: {