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

Method getDuration

Source/Node/Model.cpp:310–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310float 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
317void Model::cleanup() {
318 if (_flags.isOff(Node::Cleanup)) {

Callers 5

runActionMethod · 0.45
resumeMethod · 0.45
setupCallbackMethod · 0.45
model_get_durationFunction · 0.45
action_get_durationFunction · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected