Skip to content

Commit

Permalink
removed forced loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinerius committed Mar 15, 2024
1 parent 2e78506 commit 82128ce
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,6 @@ private void CreateAnimatorController(IGltfImport gltfImport, string directory)
var newCopy = Object.Instantiate(animationClip);
newCopy.name = animationClip.name;

// setup the loop
var animationSettings = AnimationUtility.GetAnimationClipSettings(newCopy);
animationSettings.loopTime = true;
AnimationUtility.SetAnimationClipSettings(newCopy, animationSettings);

// embed clip into the animatorController
AssetDatabase.AddObjectToAsset(newCopy, controller);
AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(newCopy));
Expand Down

0 comments on commit 82128ce

Please sign in to comment.