code cleanup: use more obvious assignments for transform snapping angles.

This commit is contained in:
Campbell Barton
2013-10-12 22:31:02 +00:00
parent fa873f956c
commit 2ce3bd0d67
2 changed files with 11 additions and 11 deletions

View File

@@ -2600,8 +2600,8 @@ void initWarp(TransInfo *t)
t->idx_max = 0;
t->num.idx_max = 0;
t->snap[0] = 0.0f;
t->snap[1] = 5.0f / 180.0f * (float)M_PI;
t->snap[2] = 1.0f / 180.0f * (float)M_PI;
t->snap[1] = DEG2RAD(5.0);
t->snap[2] = DEG2RAD(1.0);
t->num.increment = 1.0f;
@@ -3369,8 +3369,8 @@ void initRotation(TransInfo *t)
t->idx_max = 0;
t->num.idx_max = 0;
t->snap[0] = 0.0f;
t->snap[1] = (float)((5.0 / 180) * M_PI);
t->snap[2] = t->snap[1] * 0.2f;
t->snap[1] = DEG2RAD(5.0);
t->snap[2] = DEG2RAD(1.0);
t->num.increment = 1.0f;
@@ -3701,8 +3701,8 @@ void initTrackball(TransInfo *t)
t->idx_max = 1;
t->num.idx_max = 1;
t->snap[0] = 0.0f;
t->snap[1] = (float)((5.0 / 180) * M_PI);
t->snap[2] = t->snap[1] * 0.2f;
t->snap[1] = DEG2RAD(5.0);
t->snap[2] = DEG2RAD(1.0);
t->num.increment = 1.0f;
@@ -4149,8 +4149,8 @@ void initTilt(TransInfo *t)
t->idx_max = 0;
t->num.idx_max = 0;
t->snap[0] = 0.0f;
t->snap[1] = (float)((5.0 / 180) * M_PI);
t->snap[2] = t->snap[1] * 0.2f;
t->snap[1] = DEG2RAD(5.0);
t->snap[2] = DEG2RAD(1.0);
t->num.increment = t->snap[1];
@@ -6435,8 +6435,8 @@ void initBoneRoll(TransInfo *t)
t->idx_max = 0;
t->num.idx_max = 0;
t->snap[0] = 0.0f;
t->snap[1] = (float)((5.0 / 180) * M_PI);
t->snap[2] = t->snap[1] * 0.2f;
t->snap[1] = DEG2RAD(5.0);
t->snap[2] = DEG2RAD(1.0);
t->num.increment = 1.0f;

View File

@@ -82,7 +82,7 @@ static void rna_generate_static_parameter_prototypes(FILE *f, StructRNA *srna, F
fprintf(f, param); \
} (void)0
static int replace_if_different(char *tmpfile, const char *dep_files[])
static int replace_if_different(const char *tmpfile, const char *dep_files[])
{
/* return 0; *//* use for testing had edited rna */