minor bug fix

This commit is contained in:
左右看
2023-07-03 00:25:38 +08:00
parent 2257616ecd
commit 85f12dda0e
+8
View File
@@ -128,6 +128,8 @@ public class UmaViewerGlobalShader : MonoBehaviour
{ {
//Used to calculate the correct outline //Used to calculate the correct outline
//Outline need more adjust in live //Outline need more adjust in live
if (!UmaViewerUI.Instance.LiveTime)
{
if (UmaViewerBuilder.Instance.CurrentUMAContainer) if (UmaViewerBuilder.Instance.CurrentUMAContainer)
{ {
if (UmaViewerBuilder.Instance.CurrentUMAContainer.UpBodyBone) if (UmaViewerBuilder.Instance.CurrentUMAContainer.UpBodyBone)
@@ -142,6 +144,12 @@ public class UmaViewerGlobalShader : MonoBehaviour
} }
} }
} }
else
{
Shader.SetGlobalFloat("_GlobalCameraFov", 30);
}
}
} }