pass keepData flag to instances of FFIAsset when creating geometry
This commit is contained in:
@@ -1071,17 +1071,18 @@ class FFIFilamentApp extends FilamentApp<Pointer> {
|
|||||||
|
|
||||||
if (FILAMENT_WASM) {
|
if (FILAMENT_WASM) {
|
||||||
//stackRestore(stackPtr);
|
//stackRestore(stackPtr);
|
||||||
ptrList?.free();
|
ptrList.free();
|
||||||
geometry.vertices.free();
|
geometry.vertices.free();
|
||||||
geometry.normals?.free();
|
geometry.normals.free();
|
||||||
geometry.uvs?.free();
|
geometry.uvs.free();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (assetPtr == nullptr) {
|
if (assetPtr == nullptr) {
|
||||||
throw Exception("Failed to create geometry");
|
throw Exception("Failed to create geometry");
|
||||||
}
|
}
|
||||||
|
|
||||||
return FFIAsset(assetPtr, this, animationManager.cast<TAnimationManager>());
|
return FFIAsset(assetPtr, this, animationManager.cast<TAnimationManager>(),
|
||||||
|
keepData: keepData);
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user