| 4439 | } |
| 4440 | |
| 4441 | void CEditor::RemoveTimeOffsetEnvelope(const std::shared_ptr<CEnvelope> &pEnvelope) |
| 4442 | { |
| 4443 | CFixedTime TimeOffset = pEnvelope->m_vPoints[0].m_Time; |
| 4444 | for(auto &Point : pEnvelope->m_vPoints) |
| 4445 | Point.m_Time -= TimeOffset; |
| 4446 | |
| 4447 | m_OffsetEnvelopeX += TimeOffset.AsSeconds() / m_ZoomEnvelopeX.GetValue(); |
| 4448 | } |
| 4449 | |
| 4450 | static float ClampDelta(float Val, float Delta, float Min, float Max) |
| 4451 | { |