void CKeyframe::InsertFrame (size_t idx) { size_t lastframe = frames.size()-1; if (idx > lastframe) return; frames.push_back(TKeyframe()); for (size_t i=frames.size()-1; i>idx; i--) CopyFrame (i-1, i); ResetFrame2 (&frames[idx]); }
void CKeyframe::InsertFrame (int idx) { if (numFrames >= MAX_KEY_FRAMES) return; int lastframe = numFrames-1; if (idx < 0 || idx > lastframe) return; if (frames[numFrames] == NULL) frames[numFrames] = new (TKeyframe2); for (int i=numFrames; i>idx; i--) CopyFrame (i-1, i); ResetFrame2 (frames[idx]); numFrames++; }
void CKeyframe::ClearFrame (size_t idx) { if (idx >= frames.size()) return; ResetFrame2 (&frames[idx]); }
void CKeyframe::AddFrame () { frames.push_back(TKeyframe()); ResetFrame2 (&frames.back()); }
void CKeyframe::ClearFrame (int idx) { if (idx < 0 || idx >= numFrames) return; ResetFrame2 (frames[idx]); }
void CKeyframe::AddFrame () { if (numFrames >= MAX_KEY_FRAMES) return; if (frames[numFrames] == NULL) frames[numFrames] = new (TKeyframe2); ResetFrame2 (frames[numFrames]); numFrames++; }