allow setting animations for multiple targets

This commit is contained in:
Nick Fisher
2023-11-18 13:34:50 +08:00
parent fff6eae2f8
commit 5638eca20c

View File

@@ -9,13 +9,13 @@ import 'package:vector_math/vector_math_64.dart';
/// [morphTargets] must be some subset of the actual morph targets under [mesh] (though the order of these does not need to match). /// [morphTargets] must be some subset of the actual morph targets under [mesh] (though the order of these does not need to match).
/// ///
class MorphAnimationData { class MorphAnimationData {
final String meshName; final List<String> meshNames;
final List<String> morphTargets; final List<String> morphTargets;
final List<double> data; final List<double> data;
MorphAnimationData( MorphAnimationData(
this.meshName, this.data, this.morphTargets, this.frameLengthInMs) { this.meshNames, this.data, this.morphTargets, this.frameLengthInMs) {
assert(data.length == morphTargets.length * numFrames); assert(data.length == morphTargets.length * numFrames);
} }