Cleanup: Silence warnings
This commit is contained in:
parent
e0499387ca
commit
b5f17f6b8a
|
@ -64,15 +64,12 @@ static void headerTimeScale(TransInfo *t, char str[UI_MAX_DRAW_STR])
|
|||
static void applyTimeScaleValue(TransInfo *t, float value)
|
||||
{
|
||||
Scene *scene = t->scene;
|
||||
int i;
|
||||
|
||||
const short autosnap = getAnimEdit_SnapMode(t);
|
||||
const double secf = FPS;
|
||||
|
||||
FOREACH_TRANS_DATA_CONTAINER (t, tc) {
|
||||
TransData *td = tc->data;
|
||||
TransData2D *td2d = tc->data_2d;
|
||||
for (i = 0; i < tc->data_len; i++, td++, td2d++) {
|
||||
for (int i = 0; i < tc->data_len; i++, td++, td2d++) {
|
||||
/* it is assumed that td->extra is a pointer to the AnimData,
|
||||
* whose active action is where this keyframe comes from
|
||||
* (this is only valid when not in NLA)
|
||||
|
|
|
@ -89,18 +89,14 @@ static void headerTimeTranslate(TransInfo *t, char str[UI_MAX_DRAW_STR])
|
|||
|
||||
static void applyTimeTranslateValue(TransInfo *t, const float deltax)
|
||||
{
|
||||
Scene *scene = t->scene;
|
||||
int i;
|
||||
|
||||
const short autosnap = getAnimEdit_SnapMode(t);
|
||||
const double secf = FPS;
|
||||
|
||||
FOREACH_TRANS_DATA_CONTAINER (t, tc) {
|
||||
TransData *td = tc->data;
|
||||
TransData2D *td2d = tc->data_2d;
|
||||
/* It doesn't matter whether we apply to t->data or
|
||||
* t->data2d, but t->data2d is more convenient. */
|
||||
for (i = 0; i < tc->data_len; i++, td++, td2d++) {
|
||||
for (int i = 0; i < tc->data_len; i++, td++, td2d++) {
|
||||
/* It is assumed that td->extra is a pointer to the AnimData,
|
||||
* whose active action is where this keyframe comes from.
|
||||
* (this is only valid when not in NLA)
|
||||
|
|
Loading…
Reference in New Issue