Skip to content

Commit

Permalink
ImportMixamo: delete any animation clips included with the character
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Nov 18, 2024
1 parent 039eba5 commit ebaedbc
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2023, Stephen Gold
Copyright (c) 2023-2024 Stephen Gold
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -251,6 +251,12 @@ public void acorusInit() {
assert composers.size() == 1;
AnimComposer characterComposer = composers.get(0);

// Delete any animation clips included with the character:
Collection<AnimClip> includedClips = characterComposer.getAnimClips();
for (AnimClip clip : includedClips) {
characterComposer.removeAnimClip(clip);
}

// Add the downloaded animation clips to the composer:
int numAnimations = clipNames.size();
for (int animationI = 0; animationI < numAnimations; ++animationI) {
Expand Down

0 comments on commit ebaedbc

Please sign in to comment.