From 02b28e9162784933f470c5381b290f2582706a51 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 19 Feb 2012 05:11:24 +0000 Subject: replace MIN2 / MAX2 with minf / maxf to avoid calling functions multiple times. --- source/creator/creator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/creator') diff --git a/source/creator/creator.c b/source/creator/creator.c index 68a7bc415a8..0b67dfabf16 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -727,7 +727,7 @@ static int render_frame(int argc, const char **argv, void *data) BKE_reports_init(&reports, RPT_PRINT); - frame = MIN2(MAXFRAME, MAX2(MINAFRAME, frame)); + frame = CLAMPIS(frame, MINAFRAME, MAXFRAME); RE_SetReports(re, &reports); RE_BlenderAnim(re, bmain, scene, NULL, scene->lay, frame, frame, scene->r.frame_step); -- cgit v1.2.3