== 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.
This commit is contained in:
Joshua Leung
2007-08-06 07:13:34 +00:00
parent b3655aeac6
commit e3fd45abe1

View File

@@ -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;