Skip to content
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

Multiple animation clips on the same object can interfere (ALCOR top shutter) #127

Closed
JonnyOThan opened this issue Jan 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JonnyOThan
Copy link
Collaborator

JonnyOThan commented Jan 31, 2024

The ALCOR pod has several switches that control animations on the part via the animateExterior flag. Currently, if you click the switch to open the top shutter, the animation continuously loops.

This appears to happen because OTHER props are using looping animations, which sets the animation component's wrapMode to looping:

https://github.com/JonnyOThan/RasterPropMonitor/blob/240ee4d1e8ca1114c8948221be3245f79fb11e8e/RasterPropMonitor/Auxiliary%20modules/JSICallbackAnimator.cs#L333

Need to figure out if we can set just the animation state or clip to loop/once mode and still have everything work.

@JonnyOThan JonnyOThan added the bug Something isn't working label Jan 31, 2024
@JonnyOThan JonnyOThan transferred this issue from FirstPersonKSP/KSP-ALCOR Jan 31, 2024
@JonnyOThan JonnyOThan changed the title Top shutter loops its animation when opened Multiple animation clips on the same object can interfere (ALCOR top shutter) Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant