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

Method update

Source/Animation/Animation.cpp:92–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92bool KeyReset::update(Node* target, float elapsed) {
93 if (_ended && elapsed > 0.0f) return true;
94 target->setPosition(Vec2{_x, _y});
95 target->setScaleX(_scaleX);
96 target->setScaleY(_scaleY);
97 target->setSkewX(_skewX);
98 target->setSkewY(_skewY);
99 target->setAngle(_rotation);
100 if (!_visible) target->setVisible(false);
101 target->setOpacity(_opacity);
102 _ended = elapsed > 0.0f;
103 return true;
104}
105
106Own<ActionDuration> KeyReset::alloc(KeyFrameDef* def) {
107 KeyReset* action = new KeyReset();

Callers

nothing calls this directly

Calls 12

setSkewXMethod · 0.80
setSkewYMethod · 0.80
maxFunction · 0.50
minFunction · 0.50
setPositionMethod · 0.45
setScaleXMethod · 0.45
setScaleYMethod · 0.45
setAngleMethod · 0.45
setVisibleMethod · 0.45
setOpacityMethod · 0.45
setXMethod · 0.45
setYMethod · 0.45

Tested by

no test coverage detected