---------------------------------------------------------------------
| 163 | } |
| 164 | //--------------------------------------------------------------------- |
| 165 | KeyFrame *AnimationTrack::createKeyFrame( Real timePos ) |
| 166 | { |
| 167 | KeyFrame *kf = createKeyFrameImpl( timePos ); |
| 168 | |
| 169 | // Insert just before upper bound |
| 170 | KeyFrameList::iterator i = |
| 171 | std::upper_bound( mKeyFrames.begin(), mKeyFrames.end(), kf, KeyFrameTimeLess() ); |
| 172 | mKeyFrames.insert( i, kf ); |
| 173 | |
| 174 | _keyFrameDataChanged(); |
| 175 | mParent->_keyFrameListChanged(); |
| 176 | |
| 177 | return kf; |
| 178 | } |
| 179 | //--------------------------------------------------------------------- |
| 180 | void AnimationTrack::removeKeyFrame( unsigned short index ) |
| 181 | { |
no test coverage detected