forked from bartvdbraak/blender
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:
parent
40c171a69f
commit
cec102e781
@ -199,8 +199,8 @@ static int previewrange_define_exec(bContext *C, wmOperator *op)
|
|||||||
* - must clamp within allowable limits
|
* - must clamp within allowable limits
|
||||||
* - end must not be before start (though this won't occur most of the time)
|
* - end must not be before start (though this won't occur most of the time)
|
||||||
*/
|
*/
|
||||||
if (sfra < 1) sfra = 1.0f;
|
FRAMENUMBER_MIN_CLAMP(sfra);
|
||||||
if (efra < 1) efra = 1.0f;
|
FRAMENUMBER_MIN_CLAMP(efra);
|
||||||
if (efra < sfra) efra= sfra;
|
if (efra < sfra) efra= sfra;
|
||||||
|
|
||||||
scene->r.flag |= SCER_PRV_RANGE;
|
scene->r.flag |= SCER_PRV_RANGE;
|
||||||
|
Loading…
Reference in New Issue
Block a user