diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-08-06 11:13:34 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-08-06 11:13:34 +0400 |
commit | e3fd45abe16af19fbe682547304e2ed5aa2430b6 (patch) | |
tree | b8aaff9154a9eb8b1a3358695f59b1aa1d26f57d /source/blender/src | |
parent | b3655aeac60c672412e179fc436cc95bef429c66 (diff) |
== Preview Range Bugfix ==
Preview Range could get set with frame numbers less than 1. This caused problems with playback in a few cases, and also gave gibblish in the counter-cursor thing.
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/edittime.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/edittime.c b/source/blender/src/edittime.c index 83e8e5473e1..b702b77d6bc 100644 --- a/source/blender/src/edittime.c +++ b/source/blender/src/edittime.c @@ -599,6 +599,8 @@ void anim_previewrange_set() areamouseco_to_ipoco(G.v2d, mval, &rectf.xmax, &rectf.ymax); /* set preview-range */ + if (rectf.xmin < 1) rectf.xmin = 1.0f; + if (rectf.xmax < 1) rectf.xmax = 1.0f; G.scene->r.psfra= rectf.xmin; G.scene->r.pefra= rectf.xmax; |