Bugfix [#27586] P for setting playback range is clamped to > 0

Thanks for the patch Bastien Montagne. Was just legacy code from 2.4x
This commit is contained in:
Joshua Leung 2011-06-08 10:57:24 +00:00
parent 40c171a69f
commit cec102e781

@ -199,8 +199,8 @@ static int previewrange_define_exec(bContext *C, wmOperator *op)
* - must clamp within allowable limits
* - end must not be before start (though this won't occur most of the time)
*/
if (sfra < 1) sfra = 1.0f;
if (efra < 1) efra = 1.0f;
FRAMENUMBER_MIN_CLAMP(sfra);
FRAMENUMBER_MIN_CLAMP(efra);
if (efra < sfra) efra= sfra;
scene->r.flag |= SCER_PRV_RANGE;