pass keepData flag to instances of FFIAsset when creating geometry

This commit is contained in:
Nick Fisher
2025-06-04 11:14:02 +08:00
parent 7406662853
commit ab4743da90

View File

@@ -1071,17 +1071,18 @@ class FFIFilamentApp extends FilamentApp<Pointer> {
if (FILAMENT_WASM) {
//stackRestore(stackPtr);
ptrList?.free();
ptrList.free();
geometry.vertices.free();
geometry.normals?.free();
geometry.uvs?.free();
geometry.normals.free();
geometry.uvs.free();
}
if (assetPtr == nullptr) {
throw Exception("Failed to create geometry");
}
return FFIAsset(assetPtr, this, animationManager.cast<TAnimationManager>());
return FFIAsset(assetPtr, this, animationManager.cast<TAnimationManager>(),
keepData: keepData);
}
///