[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37315] trunk/blender/source/blender/ editors/animation/anim_ops.c: Bugfix [#27586] P for setting playback range is clamped to > 0
Joshua Leung
aligorith at gmail.com
Wed Jun 8 12:57:25 CEST 2011
Revision: 37315
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37315
Author: aligorith
Date: 2011-06-08 10:57:24 +0000 (Wed, 08 Jun 2011)
Log Message:
-----------
Bugfix [#27586] P for setting playback range is clamped to > 0
Thanks for the patch Bastien Montagne. Was just legacy code from 2.4x
Modified Paths:
--------------
trunk/blender/source/blender/editors/animation/anim_ops.c
Modified: trunk/blender/source/blender/editors/animation/anim_ops.c
===================================================================
--- trunk/blender/source/blender/editors/animation/anim_ops.c 2011-06-08 09:01:41 UTC (rev 37314)
+++ trunk/blender/source/blender/editors/animation/anim_ops.c 2011-06-08 10:57:24 UTC (rev 37315)
@@ -199,8 +199,8 @@
* - 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;
More information about the Bf-blender-cvs
mailing list