use boneName instead of boneIndex for setBoneTransform
This commit is contained in:
1 parent
572a945025
commit
0c698d16e3
8 files changed
+45
-39
No files matched your search
@@ -27,6 +27,9 @@ class MorphAnimationData {
|
||||
|
||||
Iterable<double> getData(String morphName) sync* {
|
||||
int index = morphTargets.indexOf(morphName);
|
||||
if (index == -1) {
|
||||
throw Exception("No data for morph $morphName");
|
||||
}
|
||||
for (int i = 0; i < numFrames; i++) {
|
||||
yield data[(i * numMorphTargets) + index];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user