Skip to content

Commit 8782748

Browse files
committed
UI Improvements
1 parent 3c70056 commit 8782748

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Assets/Scripts/Managers/DDOL_Navigation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public void ScanDocument()
9595

9696
IEnumerator Capture(Texture2D capturedTexture)
9797
{
98+
streamManager.WebCam.autoFocusPoint = null;
9899
controlsParent.SetActive(false);
99100
cropBorder.SetActive(false);
100101

@@ -103,7 +104,6 @@ IEnumerator Capture(Texture2D capturedTexture)
103104
Color32[] colors = streamManager.WebCam.GetPixels32();
104105
capturedTexture.filterMode = FilterMode.Point;
105106
Debug.Log("Pixels: " + colors.Length);
106-
107107
capturedTexture.SetPixels32(colors);
108108
yield return new WaitForEndOfFrame();
109109
capturedTexture.Apply();

Assets/Scripts/Managers/PreviewManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ IEnumerator ShowDialog(bool saveSuccessful)
171171

172172
public void UpdateContrastBrightness()
173173
{
174+
ShowPreview();
175+
174176
warpedTexture = new Texture2D(filteredRawImage.mainTexture.width, filteredRawImage.mainTexture.height, TextureFormat.RGB24, false);
175177
Graphics.CopyTexture(filteredRawImage.texture, warpedTexture);
176178

0 commit comments

Comments
 (0)