| 154 | } |
| 155 | |
| 156 | void Model::stop() { |
| 157 | _isPlaying = false; |
| 158 | _lastCompletedAnimationName.clear(); |
| 159 | Model::resume(); |
| 160 | if (_isRecovering) { |
| 161 | _resetAnimation.stop(); |
| 162 | } else { |
| 163 | if (_currentAnimation != Animation::None) { |
| 164 | for (const auto& animation : _animationGroups[_currentAnimation]->animations) { |
| 165 | animation->stop(); |
| 166 | } |
| 167 | } |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | void Model::setSlot(String name, Node* item) { |
| 172 | if (auto slot = getNodeByName(name)) { |
nothing calls this directly
no test coverage detected