| 471 | } |
| 472 | |
| 473 | void AnimationController::renderUI(Gui::Widgets& widget) |
| 474 | { |
| 475 | if (widget.checkbox("Loop Animations", mLoopAnimations)) |
| 476 | { |
| 477 | if (mpVertexCache) |
| 478 | { |
| 479 | mpVertexCache->setIsLooped(mLoopAnimations); |
| 480 | } |
| 481 | } |
| 482 | widget.tooltip("Enable/disable global animation looping."); |
| 483 | |
| 484 | for (auto& animation : mAnimations) |
| 485 | { |
| 486 | if (auto animGroup = widget.group(animation->getName())) |
| 487 | { |
| 488 | animation->renderUI(animGroup); |
| 489 | } |
| 490 | } |
| 491 | } |
| 492 | } |
nothing calls this directly
no test coverage detected