| 5158 | U32 ShapeBase::unique_anim_tag_counter = 1; |
| 5159 | |
| 5160 | U32 ShapeBase::playBlendAnimation(S32 seq_id, F32 pos, F32 rate) |
| 5161 | { |
| 5162 | BlendThread blend_clip; |
| 5163 | blend_clip.tag = ((unique_anim_tag_counter++) | BLENDED_CLIP); |
| 5164 | blend_clip.thread = 0; |
| 5165 | |
| 5166 | if (isClientObject()) |
| 5167 | { |
| 5168 | blend_clip.thread = mShapeInstance->addThread(); |
| 5169 | mShapeInstance->setSequence(blend_clip.thread, seq_id, pos); |
| 5170 | mShapeInstance->setTimeScale(blend_clip.thread, rate); |
| 5171 | } |
| 5172 | |
| 5173 | blend_clips.push_back(blend_clip); |
| 5174 | |
| 5175 | return blend_clip.tag; |
| 5176 | } |
| 5177 | |
| 5178 | void ShapeBase::restoreBlendAnimation(U32 tag) |
| 5179 | { |
nothing calls this directly
no test coverage detected