Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/fmodifier.c
| Show First 20 Lines • Show All 682 Lines • ▼ Show 20 Lines | static float fcm_cycles_time( | ||||
| else if (evaltime > lastkey[0]) { | else if (evaltime > lastkey[0]) { | ||||
| if (data->after_mode) { | if (data->after_mode) { | ||||
| side = 1; | side = 1; | ||||
| mode = data->after_mode; | mode = data->after_mode; | ||||
| cycles = data->after_cycles; | cycles = data->after_cycles; | ||||
| ofs = lastkey[0]; | ofs = lastkey[0]; | ||||
| } | } | ||||
| } | } | ||||
| if ((ELEM(0, side, mode))) { | if (ELEM(0, side, mode)) { | ||||
| return evaltime; | return evaltime; | ||||
| } | } | ||||
| /* find relative place within a cycle */ | /* find relative place within a cycle */ | ||||
| { | { | ||||
| /* calculate period and amplitude (total height) of a cycle */ | /* calculate period and amplitude (total height) of a cycle */ | ||||
| const float cycdx = lastkey[0] - prevkey[0]; | const float cycdx = lastkey[0] - prevkey[0]; | ||||
| const float cycdy = lastkey[1] - prevkey[1]; | const float cycdy = lastkey[1] - prevkey[1]; | ||||
| ▲ Show 20 Lines • Show All 896 Lines • Show Last 20 Lines | |||||