some bug fix

This commit is contained in:
CroakFang
2024-03-06 22:54:40 +08:00
parent 7b6bb0de9d
commit c96b1d80af
7 changed files with 12 additions and 9 deletions
@@ -56,6 +56,7 @@ public class LiveViewerUI : MonoBehaviour
public void SetFrameRate(int fps)
{
QualitySettings.vSyncCount = 0;
Application.targetFrameRate = int.Parse(FrameRateDropDown.options[fps].text);
}
+1 -1
View File
@@ -907,7 +907,7 @@ public class UmaContainerCharacter : UmaContainer
var textures = TailTextures;
foreach (Renderer r in Tail.GetComponentsInChildren<Renderer>())
{
foreach (Material m in r.sharedMaterials)
foreach (Material m in r.materials)
{
m.SetTexture("_MainTex", textures.FirstOrDefault(t => t.name.EndsWith("diff")));
m.SetTexture("_ToonMap", textures.FirstOrDefault(t => t.name.Contains("shad")));
+1
View File
@@ -29,6 +29,7 @@ public class UmaViewerMain : MonoBehaviour
{
Instance = this;
new Config();
QualitySettings.vSyncCount = 0;
Application.targetFrameRate = 120;
AbList = UmaDatabaseController.Instance.MetaEntries;
@@ -973,9 +973,9 @@ namespace Gallop
MangaMorph.BindProperties[1].Value = 1;
}
var tearyEnable = ((int)info.attribute & LiveTimelineKeyFacialEffectData.kAttrTeary) > 0;
var tearytype = tearyEnable ? info.tearyType : 0;
StaticTearMorph.BindProperties.ForEach(p => p.Value = tearytype);
var tearfulEnable = ((int)info.attribute & LiveTimelineKeyFacialEffectData.kAttrTearful) > 0;
var tearfultype = tearfulEnable ? info.tearyType : 0;
StaticTearMorph.BindProperties.ForEach(p => p.Value = tearfultype);
var shaderEnable = ((int)info.attribute & LiveTimelineKeyFacialEffectData.kAttrFaceShadowVisible) > 0;
if (shaderEnable)
@@ -125,7 +125,7 @@ namespace Gallop.Live.Cutt
_tempAnim.wrapMode = (arg.loop ? WrapMode.Loop : WrapMode.Default);
_tempAnim[anim.name].time = (float)(start + interval);
if (Mathf.Abs(_prevFrameAnimationTime - currentTime) < 0.01f)
if (Mathf.Abs(_prevFrameAnimationTime - currentTime) < 0.01f && Director.instance.sliderControl.is_Touched)
{
if (_tempAnim.IsPlaying(anim.name))
{