Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-11-16 02:20:18 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-11-16 02:20:18 +0400
commite2fe7751d6ce07b6fa9f30a395444bd78cd62d46 (patch)
tree730a4dcc6e161fd45a66262b03fbe3410395edd9 /source/blender/editors/space_clip
parent104a7bfb90cfb7ae4fa477a031172bd6694afb43 (diff)
code cleanup: replace most DO_MINMAX2 -> minmax_v2v2_v2
also add UNPACK macros's. handy for printing vectors for eg.
Diffstat (limited to 'source/blender/editors/space_clip')
-rw-r--r--source/blender/editors/space_clip/clip_draw.c2
-rw-r--r--source/blender/editors/space_clip/clip_editor.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_clip/clip_draw.c b/source/blender/editors/space_clip/clip_draw.c
index d523d598925..9cf389c4508 100644
--- a/source/blender/editors/space_clip/clip_draw.c
+++ b/source/blender/editors/space_clip/clip_draw.c
@@ -1284,7 +1284,7 @@ static void draw_distortion(SpaceClip *sc, ARegion *ar, MovieClip *clip,
BKE_tracking_undistort_v2(tracking, pos, tpos);
- DO_MINMAX2(tpos, min, max);
+ minmax_v2v2_v2(min, max, tpos);
}
copy_v2_v2(pos, min);
diff --git a/source/blender/editors/space_clip/clip_editor.c b/source/blender/editors/space_clip/clip_editor.c
index 71589517c83..1a62af39600 100644
--- a/source/blender/editors/space_clip/clip_editor.c
+++ b/source/blender/editors/space_clip/clip_editor.c
@@ -349,7 +349,7 @@ static int selected_boundbox(SpaceClip *sc, float min[2], float max[2])
mul_v3_m4v3(pos, sc->stabmat, pos);
- DO_MINMAX2(pos, min, max);
+ minmax_v2v2_v2(min, max, pos);
ok = TRUE;
}