diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-05 19:44:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-05 19:44:11 +0400 |
commit | db70bfc206538a9582e17a3eedcd1923e3f8d2c8 (patch) | |
tree | f42791067d415a2c72683a6dc58b7540a63b08c0 /source/blender/editors/transform | |
parent | d3cdaca648740ec6e11aebecc243442aa5ae7142 (diff) |
code cleanup: use functions to initialize selection user data structs, use radius-squared for circle select comparisons.
edge_fully_inside_rect() & edge_inside_rect() args were shorts when all callers were passing ints.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 2bcbbc3a8a2..be568fcb9d8 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -1565,7 +1565,7 @@ static void drawTransformView(const struct bContext *C, ARegion *UNUSED(ar), voi } /* just draw a little warning message in the top-right corner of the viewport to warn that autokeying is enabled */ -static void drawAutoKeyWarning(const struct bContext *C, TransInfo *t, ARegion *ar) +static void drawAutoKeyWarning(TransInfo *t, ARegion *ar) { int show_warning; @@ -1610,7 +1610,7 @@ static void drawAutoKeyWarning(const struct bContext *C, TransInfo *t, ARegion * } } -static void drawTransformPixel(const struct bContext *C, ARegion *ar, void *arg) +static void drawTransformPixel(const struct bContext *UNUSED(C), ARegion *ar, void *arg) { TransInfo *t = arg; Scene *scene = t->scene; @@ -1618,7 +1618,7 @@ static void drawTransformPixel(const struct bContext *C, ARegion *ar, void *arg) /* draw autokeyframing hint in the corner */ if (ob && autokeyframe_cfra_can_key(scene, &ob->id)) { - drawAutoKeyWarning(C, t, ar); + drawAutoKeyWarning(t, ar); } } |