diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-23 10:48:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-23 10:48:36 +0400 |
commit | 5816aa42bf7bff9c7037b7a2bd629c8f26ed2fed (patch) | |
tree | 7dade95cee648c846d8f02162efdd26c710d9444 /source/blender/editors/transform/transform_constraints.c | |
parent | c3b746fa7e4ddcddbe42f65bf9915db21fd75669 (diff) |
code cleanup: minor transform refactor
redraw flag were mixing up types - int/char/bool, add enum type to use instead.
Diffstat (limited to 'source/blender/editors/transform/transform_constraints.c')
-rw-r--r-- | source/blender/editors/transform/transform_constraints.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c index 4580bbefc96..4497723185f 100644 --- a/source/blender/editors/transform/transform_constraints.c +++ b/source/blender/editors/transform/transform_constraints.c @@ -569,7 +569,7 @@ void setConstraint(TransInfo *t, float space[3][3], int mode, const char text[]) t->con.applyVec = applyAxisConstraintVec; t->con.applySize = applyAxisConstraintSize; t->con.applyRot = applyAxisConstraintRot; - t->redraw = 1; + t->redraw = TREDRAW_HARD; } /* applies individual td->axismtx constraints */ @@ -590,7 +590,7 @@ void setAxisMatrixConstraint(TransInfo *t, int mode, const char text[]) t->con.applyVec = applyObjectConstraintVec; t->con.applySize = applyObjectConstraintSize; t->con.applyRot = applyObjectConstraintRot; - t->redraw = 1; + t->redraw = TREDRAW_HARD; } } @@ -911,7 +911,7 @@ void postSelectConstraint(TransInfo *t) setNearestAxis(t); startConstraint(t); - t->redraw = 1; + t->redraw = TREDRAW_HARD; } static void setNearestAxis2d(TransInfo *t) |