| 308 | } |
| 309 | |
| 310 | float Model::getDuration() const noexcept { |
| 311 | if (_currentAnimation != Animation::None && !_animationGroups[_currentAnimation]->animations.empty()) { |
| 312 | return _animationGroups[_currentAnimation]->animations[0]->getDuration(); |
| 313 | } |
| 314 | return 0; |
| 315 | } |
| 316 | |
| 317 | void Model::cleanup() { |
| 318 | if (_flags.isOff(Node::Cleanup)) { |
no test coverage detected