diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-07-02 17:30:05 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-07-02 17:31:35 +0300 |
commit | fb0f0f4d79a7cc89f31787615d25a98ca263bef5 (patch) | |
tree | 1d3582159b122a95363c259754af7fc92b9005f0 /source/blender/makesrna/intern/rna_fluid.c | |
parent | f58f09c9a910614ef4d3b0ccf7cd7ee777053118 (diff) |
Fluid: Added offset to control frame range
Added an offset field to control when to load the simulation files. Since this is a very small but helpful addition it is in my view safe to commit at this point of the bcon cycle.
Diffstat (limited to 'source/blender/makesrna/intern/rna_fluid.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_fluid.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_fluid.c b/source/blender/makesrna/intern/rna_fluid.c index b4fa791362f..0a634cc8b7f 100644 --- a/source/blender/makesrna/intern/rna_fluid.c +++ b/source/blender/makesrna/intern/rna_fluid.c @@ -2002,13 +2002,28 @@ static void rna_def_fluid_domain_settings(BlenderRNA *brna) RNA_def_property_int_sdna(prop, NULL, "cache_frame_start"); RNA_def_property_range(prop, -MAXFRAME, MAXFRAME); RNA_def_property_int_funcs(prop, NULL, "rna_Fluid_cache_startframe_set", NULL); - RNA_def_property_ui_text(prop, "Start", "Frame on which the simulation starts"); + RNA_def_property_ui_text( + prop, + "Start", + "Frame on which the simulation starts. This is the first frame that will be baked"); prop = RNA_def_property(srna, "cache_frame_end", PROP_INT, PROP_TIME); RNA_def_property_int_sdna(prop, NULL, "cache_frame_end"); RNA_def_property_range(prop, -MAXFRAME, MAXFRAME); RNA_def_property_int_funcs(prop, NULL, "rna_Fluid_cache_endframe_set", NULL); - RNA_def_property_ui_text(prop, "End", "Frame on which the simulation stops"); + RNA_def_property_ui_text( + prop, + "End", + "Frame on which the simulation stops. This is the last frame that will be baked"); + + prop = RNA_def_property(srna, "cache_frame_offset", PROP_INT, PROP_TIME); + RNA_def_property_int_sdna(prop, NULL, "cache_frame_offset"); + RNA_def_property_range(prop, -MAXFRAME, MAXFRAME); + RNA_def_property_ui_text( + prop, + "Offset", + "Frame offset that is used when loading the simulation from the cache. It is not considered " + "when baking the simulation, only when loading it"); prop = RNA_def_property(srna, "cache_frame_pause_data", PROP_INT, PROP_TIME); RNA_def_property_int_sdna(prop, NULL, "cache_frame_pause_data"); |