reorder morph animations according to actual mesh morph targets

This commit is contained in:
Nick Fisher
2023-10-18 16:04:14 +08:00
parent 50c47fe908
commit ed3555c237
5 changed files with 34 additions and 36 deletions

View File

@@ -360,19 +360,7 @@ class FilamentControllerMethodChannel extends FilamentController {
///
Future setMorphAnimationData(
FilamentEntity asset, MorphAnimationData animation) async {
if (_viewer == null || _resizing) {
throw Exception("No viewer available, ignoring");
}
await _channel.invokeMethod("setMorphAnimation", [
_assetManager,
asset,
animation.meshName,
animation.data,
animation.animatedMorphIndices,
animation.numMorphTargets,
animation.numFrames,
animation.frameLengthInMs
]);
throw Exception("No viewer available, ignoring");
}
///