Skip to content

Commit

Permalink
Disable the cache for now
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Jul 30, 2024
1 parent 71cf74c commit 4c7d2ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Assets/Scripts/GUI/LoadBackgroundImageButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 4c7d2ea

Please sign in to comment.