MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / stop

Method stop

Source/Node/Model.cpp:156–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void 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
171void Model::setSlot(String name, Node* item) {
172 if (auto slot = getNodeByName(name)) {

Callers

nothing calls this directly

Calls 4

stopActionMethod · 0.80
clearMethod · 0.65
stopMethod · 0.65
resumeFunction · 0.50

Tested by

no test coverage detected