Merge pull request #761 from Kohei-Yanagida/add_keyframe_length_check_to_AnimationExporter

Check Keyframe length of AnimationCurve
This commit is contained in:
ousttrue
2021-02-26 20:01:23 +09:00
committed by GitHub

View File

@@ -129,6 +129,11 @@ namespace UniGLTF
{
var curve = AnimationUtility.GetEditorCurve(clip, binding);
if (!curve.keys.Any())
{
throw new Exception("There is no keyframe in AnimationCurve : " + clip.name);
}
var property = AnimationExporter.PropertyToTarget(binding.propertyName);
if (property == glTFAnimationTarget.AnimationProperties.NotImplemented)
{