Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/collada/BCAnimationCurve.cpp
| Context not available. | |||||
| return -1; | return -1; | ||||
| } | } | ||||
| const int cframe = fcurve->bezt[start_at].vec[1][0]; // inacurate! | const int cframe = fcurve->bezt[start_at].vec[1][0]; // inaccurate! | ||||
| if (fabs(cframe - sample_frame) < 0.00001) { | if (fabs(cframe - sample_frame) < 0.00001) { | ||||
| return start_at; | return start_at; | ||||
| Context not available. | |||||
| for (int fcu_index = 0; fcu_index < fcurve->totvert; fcu_index++) { | for (int fcu_index = 0; fcu_index < fcurve->totvert; fcu_index++) { | ||||
| upper_index = fcu_index; | upper_index = fcu_index; | ||||
| const int cframe = fcurve->bezt[fcu_index].vec[1][0]; // inacurate! | const int cframe = fcurve->bezt[fcu_index].vec[1][0]; // inaccurate! | ||||
| if (cframe <= sample_frame) { | if (cframe <= sample_frame) { | ||||
| lower_frame = cframe; | lower_frame = cframe; | ||||
| lower_index = fcu_index; | lower_index = fcu_index; | ||||
| Context not available. | |||||