[Bf-blender-cvs] [a3b0ba2] master: Always init pointcache frame step to 1.

Bastien Montagne noreply at git.blender.org
Fri Apr 25 17:58:28 CEST 2014


Commit: a3b0ba287104e37d19d47197cbc3e64ba4498353
Author: Bastien Montagne
Date:   Fri Apr 25 17:55:37 2014 +0200
https://developer.blender.org/rBa3b0ba287104e37d19d47197cbc3e64ba4498353

Always init pointcache frame step to 1.

Note it was already the case for many simulations (cloth, rigidbody, etc.), just doing this
systematically in BKE_ptcache_add() now, will avoid us some recurring bug reports.
Advanced users will know when they can/have to raise this parameter!

===================================================================

M	source/blender/blenkernel/intern/pointcache.c

===================================================================

diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c
index b97861c..86649ac 100644
--- a/source/blender/blenkernel/intern/pointcache.c
+++ b/source/blender/blenkernel/intern/pointcache.c
@@ -3000,7 +3000,7 @@ PointCache *BKE_ptcache_add(ListBase *ptcaches)
 	cache= MEM_callocN(sizeof(PointCache), "PointCache");
 	cache->startframe= 1;
 	cache->endframe= 250;
-	cache->step= 10;
+	cache->step = 1;
 	cache->index = -1;
 
 	BLI_addtail(ptcaches, cache);




More information about the Bf-blender-cvs mailing list