From 6641403187afbd3695c42aec167fc7eb8416bede Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Wed, 26 Apr 2023 17:50:26 +0800 Subject: [PATCH] animation data class renaming --- lib/filament_controller.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/filament_controller.dart b/lib/filament_controller.dart index 1fa65cb7..1e6c6dad 100644 --- a/lib/filament_controller.dart +++ b/lib/filament_controller.dart @@ -9,10 +9,10 @@ import 'package:flutter/animation.dart'; import 'package:flutter/scheduler.dart'; import 'package:flutter/services.dart'; +import 'package:polyvox_filament/animations/bone_animation_data.dart'; +import 'package:polyvox_filament/animations/morph_animation_data.dart'; import 'package:polyvox_filament/generated_bindings.dart'; -import 'animations/animations.dart'; - typedef AssetManager = Pointer; typedef FilamentViewer = Pointer; typedef FilamentEntity = int; @@ -299,7 +299,8 @@ class FilamentController { /// [morphWeights] is a list of doubles in frame-major format. /// Each frame is [numWeights] in length, and each entry is the weight to be applied to the morph target located at that index in the mesh primitive at that frame. /// - void setMorphAnimation(FilamentEntity asset, MorphAnimation animation) async { + void setMorphAnimationData( + FilamentEntity asset, MorphAnimationData animation) async { var data = calloc(animation.data.length); for (int i = 0; i < animation.data.length; i++) { data.elementAt(i).value = animation.data[i]; @@ -321,7 +322,7 @@ class FilamentController { /// Each frame is [numWeights] in length, and each entry is the weight to be applied to the morph target located at that index in the mesh primitive at that frame. /// void setBoneAnimation( - FilamentEntity asset, List animations) async { + FilamentEntity asset, List animations) async { var data = calloc(animations.length * animations.first.frameData.length); int offset = 0;