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))
{
+4 -4
View File
@@ -100,7 +100,7 @@ QualitySettings:
softVegetation: 0
realtimeReflectionProbes: 0
billboardsFaceCameraPosition: 0
vSyncCount: 1
vSyncCount: 0
lodBias: 0.7
maximumLODLevel: 0
streamingMipmapsActive: 0
@@ -137,7 +137,7 @@ QualitySettings:
softVegetation: 1
realtimeReflectionProbes: 1
billboardsFaceCameraPosition: 1
vSyncCount: 1
vSyncCount: 0
lodBias: 1
maximumLODLevel: 0
streamingMipmapsActive: 0
@@ -174,7 +174,7 @@ QualitySettings:
softVegetation: 1
realtimeReflectionProbes: 1
billboardsFaceCameraPosition: 1
vSyncCount: 1
vSyncCount: 0
lodBias: 1.5
maximumLODLevel: 0
streamingMipmapsActive: 0
@@ -211,7 +211,7 @@ QualitySettings:
softVegetation: 1
realtimeReflectionProbes: 1
billboardsFaceCameraPosition: 1
vSyncCount: 1
vSyncCount: 0
lodBias: 2
maximumLODLevel: 0
streamingMipmapsActive: 0
+1
View File
@@ -13,3 +13,4 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
assetDefaultFramerate: 60
m_DefaultFrameRate: 60