Check Keyframe length of AnimationCurve

This commit is contained in:
Kohei-Yanagida
2021-02-26 19:45:24 +09:00
parent 6cf4682dd8
commit fd323fda60

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)
{