-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autoplay #1065
Autoplay #1065
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1065 +/- ##
=======================================
Coverage 96.22% 96.23%
=======================================
Files 120 120
Lines 7026 7031 +5
=======================================
+ Hits 6761 6766 +5
Misses 265 265 ☔ View full report in Codecov by Sentry. |
So, if I get this right, it means that autoplay will automatically play a file on load. Eg, when changing file, it will start playing the animation. Is that correct @technologeli ? Wdyt @Meakk ? |
Looks like the correct approach to me. 👍 |
Definitely possible! Animation is already tested with an interaction test. Just removing the interaction with the same test should provide the same output. |
@technologeli let me know if you need help with adding an test. |
Adding a simple application test with @technologeli see https://github.com/f3d-app/f3d/blob/f037d908c081cc2960999f7c53eaf86f89950816/application/testing/CMakeLists.txt#L140C37-L140C37 Adding a new line like: f3d_test(NAME TestGLTFReaderWithAnimationAutoplay DATA BoxAnimated.gltf ARGS --geometry-only --animation-autoplay DEFAULT_LIGHTS) Then you should be able to run |
Thank you for the pointers, I had a test written but was unsure of how to get it passing while using |
|
Thanks a lot for your contribution! Do not hesitate to reach out if you need any help fixing another issue! |
Brief description of changes:
scene.animation.autoplay
,false
by default--animation-autoplay
scene.animation.autoplay
is true, files with animations will automatically start their animation.