FirstPersonKSP / RasterPropMonitor

Plugin for Kerbal Space Program
https://forum.kerbalspaceprogram.com/index.php?/topic/190737-18x-rasterpropmonitor-adopted/&tab=comments#comment-3723047
Other
24 stars 13 forks source link

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

Closed JonnyOThan closed 5 months ago

JonnyOThan commented 5 months ago

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.