use getPrimitiveCount method on FilamentApp, rather than direct FFI method

This commit is contained in:
Nick Fisher committed 2025-06-11 09:52:57 +08:00
1 parent f78c6f258f
commit 0461bb364a
1 file changed
+4 -2
@@ -1064,8 +1064,10 @@ class FFIAsset extends ThermionAsset {
} }
} }
///
///
///
Future<int> getPrimitiveCount({ThermionEntity? entity}) async { Future<int> getPrimitiveCount({ThermionEntity? entity}) async {
entity ??= this.entity; return FilamentApp.instance!.getPrimitiveCount(entity ??= this.entity);
return RenderableManager_getPrimitiveCount(app.renderableManager, entity);
} }
} }