diff --git a/examples/.gitignore b/examples/.gitignore index 79c113f9..41c20542 100644 --- a/examples/.gitignore +++ b/examples/.gitignore @@ -43,3 +43,7 @@ app.*.map.json /android/app/debug /android/app/profile /android/app/release + +# FVM Version Cache +*.fvmrc +.fvm/ \ No newline at end of file diff --git a/packages/three_js_core/lib/others/peripherals.dart b/packages/three_js_core/lib/others/peripherals.dart index d0e1c7b5..c939e66f 100755 --- a/packages/three_js_core/lib/others/peripherals.dart +++ b/packages/three_js_core/lib/others/peripherals.dart @@ -197,6 +197,7 @@ class PeripheralsState extends State { } class WebPointerEvent { + int pointerCount = 0; late int pointerId; late int button; String pointerType = 'touch'; diff --git a/packages/three_js_core/lib/others/three_viewer.dart b/packages/three_js_core/lib/others/three_viewer.dart index 869a084e..1a8ffa83 100644 --- a/packages/three_js_core/lib/others/three_viewer.dart +++ b/packages/three_js_core/lib/others/three_viewer.dart @@ -163,7 +163,7 @@ class ThreeJS { initPlatformState(); } - void animate(Duration duration) { + Future animate(Duration duration) async { if (!mounted || disposed || updating) { return; } @@ -171,7 +171,7 @@ class ThreeJS { double dt = clock.getDelta(); if(settings.animate){ - render(dt); + await render(dt); if(!pause){ for(int i = 0; i < events.length;i++){ events[i].call(dt);