| 406 | } |
| 407 | |
| 408 | static float CursorToTime(float cursor, float duration, bool backwards, bool once_pingpong) |
| 409 | { |
| 410 | float t = cursor; |
| 411 | if (backwards) |
| 412 | t = duration - t; |
| 413 | if (once_pingpong && t > duration * 0.5f) |
| 414 | { |
| 415 | t = duration - t; |
| 416 | } |
| 417 | return t; |
| 418 | } |
| 419 | |
| 420 | static MorphWeightSlot* GetMorphWeightSlot(RigInstance* instance, uint64_t model_id) |
| 421 | { |
no outgoing calls
no test coverage detected