remove morph animation FFI-specific methods (regular methods are OK to use outside the engine thread)

This commit is contained in:
Nick Fisher
2023-11-19 18:12:38 +08:00
parent ad9e4689b1
commit f0683b0b24
5 changed files with 8 additions and 58 deletions

View File

@@ -595,9 +595,11 @@ class FilamentControllerFFI extends FilamentController {
for (int i = 0; i < weights.length; i++) {
weightsPtr.elementAt(i).value = weights[i];
}
set_morph_target_weights_ffi(_assetManager!, entity,
meshName.toNativeUtf8().cast<Char>(), weightsPtr, weights.length);
var meshNamePtr = meshName.toNativeUtf8(allocator: calloc).cast<Char>();
set_morph_target_weights(
_assetManager!, entity, meshNamePtr, weightsPtr, weights.length);
calloc.free(weightsPtr);
calloc.free(meshNamePtr);
}
@override