From 4c7d2ea846d2eeec232d9d88e5f2557e4680c1d9 Mon Sep 17 00:00:00 2001 From: Andy Baker Date: Tue, 30 Jul 2024 15:26:53 +0100 Subject: [PATCH] Disable the cache for now --- Assets/Scripts/GUI/LoadBackgroundImageButton.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/GUI/LoadBackgroundImageButton.cs b/Assets/Scripts/GUI/LoadBackgroundImageButton.cs index 4998b7e65f..05aa19eaa7 100644 --- a/Assets/Scripts/GUI/LoadBackgroundImageButton.cs +++ b/Assets/Scripts/GUI/LoadBackgroundImageButton.cs @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +using System.IO; using UnityEngine; using UnityEngine.Localization; @@ -54,7 +55,10 @@ override protected void OnButtonPressed() } - SceneSettings.m_Instance.LoadCustomSkyboxFromCache(ReferenceImage.FilePath); + // TODO we had problems with seams when using the cached image. + // Likely related to mipmaps but I couldn't track down the cause. + // SceneSettings.m_Instance.LoadCustomSkyboxFromCache(ReferenceImage.FilePath); + SceneSettings.m_Instance.LoadCustomSkybox(Path.GetFileName(ReferenceImage.FilePath)); } override public void ResetState()