expose addAnimationComponent and dont add by default on loadGlb
This commit is contained in:
@@ -1269,7 +1269,8 @@ class FilamentControllerFFI extends FilamentController {
|
||||
final outPtr = allocator<EntityId>(1);
|
||||
outPtr.value = 0;
|
||||
|
||||
pick_ffi(_viewer!, x, textureDetails.value!.height - y, outPtr);
|
||||
pick_ffi(_viewer!, (x * _pixelRatio).toInt(),
|
||||
textureDetails.value!.height - (y * _pixelRatio).toInt(), outPtr);
|
||||
int wait = 0;
|
||||
while (outPtr.value == 0) {
|
||||
await Future.delayed(const Duration(milliseconds: 32));
|
||||
@@ -1497,6 +1498,11 @@ class FilamentControllerFFI extends FilamentController {
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Future addAnimationComponent(FilamentEntity entity) async {
|
||||
add_animation_component(_sceneManager!, entity);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<FilamentEntity> createGeometry(
|
||||
List<double> vertices, List<int> indices, String? materialPath) async {
|
||||
|
||||
Reference in New Issue
Block a user