minor bug fix
This commit is contained in:
@@ -810,12 +810,14 @@ namespace Gallop
|
|||||||
{
|
{
|
||||||
//|| lockMouth
|
//|| lockMouth
|
||||||
|
|
||||||
|
|
||||||
if (_switch == 0 || lockMouth)
|
if (_switch == 0 || lockMouth)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
float weightRatio = CalcMorphWeight(liveTime_, keyData_.time, keyData_.interpolateType, keyData_, null);
|
float weightRatio = CalcMorphWeight(liveTime_, keyData_.time, keyData_.interpolateType, keyData_, null);
|
||||||
|
|
||||||
MouthMorphs.ForEach(morph => morph.weight = 0);
|
MouthMorphs.ForEach(morph => morph.weight = 0);
|
||||||
@@ -855,7 +857,7 @@ namespace Gallop
|
|||||||
{
|
{
|
||||||
if (updateInfo_.mouthCur != null)
|
if (updateInfo_.mouthCur != null)
|
||||||
{
|
{
|
||||||
if((int)updateInfo_.mouthCur.attribute == 131072)
|
if((int)updateInfo_.mouthCur.attribute == 131072 || (int)updateInfo_.mouthCur.attribute == 0)
|
||||||
{
|
{
|
||||||
lockMouth = true;
|
lockMouth = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ namespace Gallop.Live.Cutt
|
|||||||
|
|
||||||
private AnimationClip _targetAnim = null;
|
private AnimationClip _targetAnim = null;
|
||||||
|
|
||||||
|
private bool _motionSetup = false;
|
||||||
|
|
||||||
public void Initialize(Transform target, int targetIndex, int seqDataIndex, LiveTimelineControl timelineControl, List<AnimationClip> animclips = null)
|
public void Initialize(Transform target, int targetIndex, int seqDataIndex, LiveTimelineControl timelineControl, List<AnimationClip> animclips = null)
|
||||||
{
|
{
|
||||||
if(animclips != null)
|
if(animclips != null)
|
||||||
@@ -73,10 +75,23 @@ namespace Gallop.Live.Cutt
|
|||||||
{
|
{
|
||||||
if(Director.instance.liveMode == 0)
|
if(Director.instance.liveMode == 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
if(_targetAnim != null)
|
if(_targetAnim != null)
|
||||||
{
|
{
|
||||||
_tempAnim[_targetAnim.name].time = currentTime;
|
//_tempAnim[_targetAnim.name].time = currentTime;
|
||||||
_tempAnim.Play(_targetAnim.name);
|
if (Director.instance.sliderControl.is_Touched)
|
||||||
|
{
|
||||||
|
_tempAnim[_targetAnim.name].time = currentTime;
|
||||||
|
_tempAnim.Play(_targetAnim.name);
|
||||||
|
_motionSetup = false;
|
||||||
|
}
|
||||||
|
else if (!_motionSetup)
|
||||||
|
{
|
||||||
|
_tempAnim[_targetAnim.name].time = currentTime;
|
||||||
|
_tempAnim.Play(_targetAnim.name);
|
||||||
|
_motionSetup = true;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ namespace Gallop.Live.Cutt
|
|||||||
public abstract class LiveTimelineKey
|
public abstract class LiveTimelineKey
|
||||||
{
|
{
|
||||||
public int frame;
|
public int frame;
|
||||||
public LiveTimelineKeyAttribute attribute;
|
public int attribute;
|
||||||
}
|
}
|
||||||
|
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
|
|||||||
@@ -587,6 +587,7 @@ namespace Gallop.Live
|
|||||||
foreach (var song in liveSong)
|
foreach (var song in liveSong)
|
||||||
{
|
{
|
||||||
song.time = _liveCurrentTime;
|
song.time = _liveCurrentTime;
|
||||||
|
song.Play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -624,7 +625,7 @@ namespace Gallop.Live
|
|||||||
|
|
||||||
UI.ProgressBar.value = _liveCurrentTime / totalTime;
|
UI.ProgressBar.value = _liveCurrentTime / totalTime;
|
||||||
//Debug.Log((float)liveMusic.time / 1000);
|
//Debug.Log((float)liveMusic.time / 1000);
|
||||||
//Debug.Log(_liveCurrentTime);
|
Debug.Log(_liveCurrentTime * 60);
|
||||||
OnTimelineUpdate(_liveCurrentTime);
|
OnTimelineUpdate(_liveCurrentTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user