mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-11 13:29:41 -05:00
Merge pull request #761 from Kohei-Yanagida/add_keyframe_length_check_to_AnimationExporter
Check Keyframe length of AnimationCurve
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user