fix dynamic bone animations

This commit is contained in:
Nick Fisher
2023-04-27 16:32:32 +08:00
parent d1e15b53c5
commit 62c4be0563
16 changed files with 538 additions and 520 deletions
+2 -1
View File
@@ -24,8 +24,9 @@ class MorphAnimationData {
final double frameLengthInMs;
Iterable<double> getData(String morphName) sync* {
int index = morphNames.indexOf(morphName);
for (int i = 0; i < numFrames; i++) {
yield data[i * numMorphWeights];
yield data[(i * numMorphWeights) + index];
}
}
}