From 5638eca20c0e616144182fb3ca92bea50d09f660 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Sat, 18 Nov 2023 13:34:50 +0800 Subject: [PATCH] allow setting animations for multiple targets --- lib/animations/animation_data.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/animations/animation_data.dart b/lib/animations/animation_data.dart index 04a860eb..76fc715c 100644 --- a/lib/animations/animation_data.dart +++ b/lib/animations/animation_data.dart @@ -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). /// class MorphAnimationData { - final String meshName; + final List meshNames; final List morphTargets; final List data; MorphAnimationData( - this.meshName, this.data, this.morphTargets, this.frameLengthInMs) { + this.meshNames, this.data, this.morphTargets, this.frameLengthInMs) { assert(data.length == morphTargets.length * numFrames); }