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:
authorLukas Toenne <lukas.toenne@googlemail.com>2012-02-01 19:58:26 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2012-02-01 19:58:26 +0400
commite6efe93c094e12e4efda9952f5b3391fc8f8e852 (patch)
tree273b2ee5f45044a09013c904fa6aa6039c85760d /source/blender/makesdna/DNA_object_fluidsim.h
parent5504ba6f501ce7b8b96d210d56cfd457179f09ba (diff)
Optional offset for fluid cache frame reading.
This was a request by Daniel Salazar. It adds a new frame offset variable to fluid sim settings, which can be used to display baked fluid sims at different times. Eventually this could be replaced by real NLA strips for cached data, but until then this is a simple way to have more flexible cache result usage. Not strictly a BCon3 patch, but after IRC discussion with Genscher, ZanQdo and kaito decided to commit it anyway, since it's a small feature and makes fluid sim a bit more usable. Similar patch for point cache (particles, smoke, cloth) is being worked on as well.
Diffstat (limited to 'source/blender/makesdna/DNA_object_fluidsim.h')
-rw-r--r--source/blender/makesdna/DNA_object_fluidsim.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_object_fluidsim.h b/source/blender/makesdna/DNA_object_fluidsim.h
index 90e6e97bc15..0651f076096 100644
--- a/source/blender/makesdna/DNA_object_fluidsim.h
+++ b/source/blender/makesdna/DNA_object_fluidsim.h
@@ -74,6 +74,9 @@ typedef struct FluidsimSettings {
float animStart, animEnd;
/* bake start end time (in blender frames) */
int bakeStart, bakeEnd;
+ /* offset for baked frames */
+ int frameOffset;
+ int pad;
/* g star param (LBM compressibility) */
float gstar;
/* activate refinement? */