diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2016-01-17 05:13:15 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2016-01-17 05:13:15 +0300 |
commit | 8194f223d89866a669ad8936ef67e1e1ac45830f (patch) | |
tree | 818806f617ec31d19ed5f49d4a80c094e9e51632 /source | |
parent | 91096aefc55fc002220651074b1788448d46667e (diff) |
Point Cache bake: make sure endframe is initialize with a decent value.
This is how the old code used to initialize it. Current value was
failing big time when baking all caches (always set to MAXFRAME), and it
was added right before commit to quiet a warning... (I know, I know...)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/pointcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c index 7009b4b0ce2..ad599942b50 100644 --- a/source/blender/blenkernel/intern/pointcache.c +++ b/source/blender/blenkernel/intern/pointcache.c @@ -3147,7 +3147,7 @@ void BKE_ptcache_bake(PTCacheBaker *baker) PointCache *cache = NULL; float frameleno = scene->r.framelen; int cfrao = CFRA; - int startframe = MAXFRAME, endframe = MAXFRAME; + int startframe = MAXFRAME, endframe = baker->anim_init ? scene->r.sfra : CFRA; int bake = baker->bake; int render = baker->render; |