This commit is contained in:
H-M-H 2015-09-18 21:28:04 +02:00 committed by oy
parent 69fe8ec1bc
commit a864c5c6fe

View file

@ -3487,7 +3487,7 @@ void CEditor::RenderEnvelopeEditor(CUIRect View)
// add point
int Time = (int)(((UI()->MouseX()-View.x)*TimeScale)*1000.0f);
float aChannels[4];
pEnvelope->Eval(Time, aChannels);
pEnvelope->Eval(Time/1000.0f, aChannels);
pEnvelope->AddPoint(Time,
f2fx(aChannels[0]), f2fx(aChannels[1]),
f2fx(aChannels[2]), f2fx(aChannels[3]));