Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2007-08-06 11:13:34 +0400
committerJoshua Leung <aligorith@gmail.com>2007-08-06 11:13:34 +0400
commite3fd45abe16af19fbe682547304e2ed5aa2430b6 (patch)
treeb8aaff9154a9eb8b1a3358695f59b1aa1d26f57d /source/blender/src
parentb3655aeac60c672412e179fc436cc95bef429c66 (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.c2
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;