use getPrimitiveCount method on FilamentApp, rather than direct FFI method

This commit is contained in:
Nick Fisher
2025-06-11 09:52:57 +08:00
parent f78c6f258f
commit 0461bb364a

View File

@@ -1064,8 +1064,10 @@ class FFIAsset extends ThermionAsset {
}
}
///
///
///
Future<int> getPrimitiveCount({ThermionEntity? entity}) async {
entity ??= this.entity;
return RenderableManager_getPrimitiveCount(app.renderableManager, entity);
return FilamentApp.instance!.getPrimitiveCount(entity ??= this.entity);
}
}