Skip to content

Commit

Permalink
minor rename
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Nov 8, 2023
1 parent 5e6aa21 commit 2f1f8df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Editor/UnityGLTFEditor.asmdef
Expand Up @@ -2,8 +2,8 @@
"name": "UnityGLTFEditor",
"rootNamespace": "",
"references": [
"GLTFSerialization",
"UnityGLTFScripts"
"GUID:40f39bff7bc9be34182ebe488fcf8228",
"GUID:18d18f811ba286c49814567a3cfba688"
],
"includePlatforms": [
"Editor"
Expand Down
6 changes: 3 additions & 3 deletions Runtime/Scripts/SceneExporter/ExporterAnimation.cs
Expand Up @@ -212,11 +212,11 @@ public GLTFAnimation ExportAnimationClip(AnimationClip clip, string name, Transf

ConvertClipToGLTFAnimation(clip, node, anim, speed);

var clipsKey = (node, clip);
if (anim.Channels.Count > 0 && anim.Samplers.Count > 0 && !_root.Animations.Contains(anim) && !_animationClips.Contains(clipsKey))
var sameNodeAndClipKey = (node, clip);
if (anim.Channels.Count > 0 && anim.Samplers.Count > 0 && !_root.Animations.Contains(anim) && !_animationClips.Contains(sameNodeAndClipKey))
{
_root.Animations.Add(anim);
_animationClips.Add(clipsKey);
_animationClips.Add(sameNodeAndClipKey);
}
return anim;
}
Expand Down

0 comments on commit 2f1f8df

Please sign in to comment.