Skip to content

Commit

Permalink
Update the animantions
Browse files Browse the repository at this point in the history
  • Loading branch information
GER-Space committed Nov 5, 2016
1 parent 08b8c05 commit ddb3b7f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Binary file modified GameData/kOS-EVA/Plugins/kOS-EVA.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion GameData/kOS-EVA/kOS-EVA.version
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"KSP_VERSION_MAX":{
"MAJOR":1,
"MINOR":2,
"PATCH":0
"PATCH":1
}
}
6 changes: 3 additions & 3 deletions kOS-EVA/Addon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,15 @@ private void StopAnimation(StringValue name)
Animation _kerbalanimation = null;
shared.Vessel.GetComponentCached<Animation>(ref _kerbalanimation);
_kerbalanimation.Stop(name);
_kerbalanimation.CrossFade("idle");
_kerbalanimation.CrossFade("idle",0.3f,PlayMode.StopSameLayer);
}

private void StopAllAnimations()
{
Animation _kerbalanimation = null;
shared.Vessel.GetComponentCached<Animation>(ref _kerbalanimation);
_kerbalanimation.Stop();
_kerbalanimation.CrossFade("idle");
// _kerbalanimation.Stop();
_kerbalanimation.CrossFade("idle", 0.3f, PlayMode.StopAll);
}

private void LoadAnimation (StringValue path)
Expand Down
6 changes: 3 additions & 3 deletions kOS-EVA/EvaController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -383,16 +383,16 @@ private void PlayAnimation(string name)
{
Animation _kerbalanimation = null;
eva.vessel.GetComponentCached<Animation>(ref _kerbalanimation);
_kerbalanimation.CrossFade(name);
_kerbalanimation.CrossFade(name, 0.3f, PlayMode.StopAll);
currentanimation = name;
}

private void StopAllAnimations()
{
Animation _kerbalanimation = null;
eva.vessel.GetComponentCached<Animation>(ref _kerbalanimation);
_kerbalanimation.Stop();
_kerbalanimation.CrossFade("idle");
// _kerbalanimation.Stop();
_kerbalanimation.CrossFade("idle", 0.3f, PlayMode.StopAll);

}
#endregion
Expand Down

0 comments on commit ddb3b7f

Please sign in to comment.