Add more places to hide guides if relationship lines are enabled
This commit is contained in:
parent
60cbb69c7c
commit
7144e2fde4
@ -118,8 +118,10 @@ void CreateDialog::popup_create(bool p_dont_clear, bool p_replace_mode) {
|
|||||||
if (enable_rl) {
|
if (enable_rl) {
|
||||||
search_options->add_constant_override("draw_relationship_lines", 1);
|
search_options->add_constant_override("draw_relationship_lines", 1);
|
||||||
search_options->add_color_override("relationship_line_color", rl_color);
|
search_options->add_color_override("relationship_line_color", rl_color);
|
||||||
|
search_options->add_constant_override("draw_guides", 0);
|
||||||
} else {
|
} else {
|
||||||
search_options->add_constant_override("draw_relationship_lines", 0);
|
search_options->add_constant_override("draw_relationship_lines", 0);
|
||||||
|
search_options->add_constant_override("draw_guides", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
is_replace_mode = p_replace_mode;
|
is_replace_mode = p_replace_mode;
|
||||||
|
@ -399,8 +399,10 @@ void EditorHelpIndex::_notification(int p_what) {
|
|||||||
if (enable_rl) {
|
if (enable_rl) {
|
||||||
class_list->add_constant_override("draw_relationship_lines", 1);
|
class_list->add_constant_override("draw_relationship_lines", 1);
|
||||||
class_list->add_color_override("relationship_line_color", rl_color);
|
class_list->add_color_override("relationship_line_color", rl_color);
|
||||||
|
class_list->add_constant_override("draw_guides", 0);
|
||||||
} else {
|
} else {
|
||||||
class_list->add_constant_override("draw_relationship_lines", 0);
|
class_list->add_constant_override("draw_relationship_lines", 0);
|
||||||
|
class_list->add_constant_override("draw_guides", 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1041,8 +1041,11 @@ void ScriptEditorDebugger::_notification(int p_what) {
|
|||||||
if (enable_rl) {
|
if (enable_rl) {
|
||||||
inspect_scene_tree->add_constant_override("draw_relationship_lines", 1);
|
inspect_scene_tree->add_constant_override("draw_relationship_lines", 1);
|
||||||
inspect_scene_tree->add_color_override("relationship_line_color", rl_color);
|
inspect_scene_tree->add_color_override("relationship_line_color", rl_color);
|
||||||
} else
|
inspect_scene_tree->add_constant_override("draw_guides", 0);
|
||||||
|
} else {
|
||||||
inspect_scene_tree->add_constant_override("draw_relationship_lines", 0);
|
inspect_scene_tree->add_constant_override("draw_relationship_lines", 0);
|
||||||
|
inspect_scene_tree->add_constant_override("draw_guides", 1);
|
||||||
|
}
|
||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_PROCESS: {
|
case NOTIFICATION_PROCESS: {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user