From d819c1b82b47ffa77a90064e05117e2dfcd55c74 Mon Sep 17 00:00:00 2001 From: Rich Dunne Date: Sun, 25 Oct 2020 08:40:45 -0600 Subject: [PATCH] Fixed a bug where the 3D line between waypoints was still being drawn even though 3D waypoints were disabled in the settings menu. --- SceneManager/Object Classes/Path.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SceneManager/Object Classes/Path.cs b/SceneManager/Object Classes/Path.cs index 0eb5714..7c62061 100644 --- a/SceneManager/Object Classes/Path.cs +++ b/SceneManager/Object Classes/Path.cs @@ -83,7 +83,7 @@ namespace SceneManager { while(true) { - if (Settings.Enable3DWaypoints && (State == State.Finished && MenuManager.menuPool.IsAnyMenuOpen()) || (State == State.Creating && PathCreationMenu.pathCreationMenu.Visible)) + if (SettingsMenu.threeDWaypoints.Checked && (State == State.Finished && MenuManager.menuPool.IsAnyMenuOpen()) || (State == State.Creating && PathCreationMenu.pathCreationMenu.Visible)) { for (int i = 0; i < Waypoints.Count; i++) {