diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-10-29 19:23:50 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-10-29 19:23:50 +0300 |
commit | 6099b2620d645f4129c42af2272cb6bd8538fc7a (patch) | |
tree | 942f71846fb8aa796c0a3d12faa27de167dcc344 /source/blender/makesrna/intern/rna_cachefile.c | |
parent | bbc7eb8ae5386aae5aaa58df76f701bc7f0dddbf (diff) |
Alembic: added frame offset property
The offset is subtracted, so that it's intuitive (dragging slider pushes
the animation further that way on the timeline).
Diffstat (limited to 'source/blender/makesrna/intern/rna_cachefile.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_cachefile.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_cachefile.c b/source/blender/makesrna/intern/rna_cachefile.c index 09fdeb15b10..81b0c539e33 100644 --- a/source/blender/makesrna/intern/rna_cachefile.c +++ b/source/blender/makesrna/intern/rna_cachefile.c @@ -148,6 +148,15 @@ static void rna_def_cachefile(BlenderRNA *brna) " or to determine which file to use in a file sequence"); RNA_def_property_update(prop, 0, "rna_CacheFile_update"); + prop = RNA_def_property(srna, "frame_offset", PROP_FLOAT, PROP_NONE); + RNA_def_property_float_sdna(prop, NULL, "frame_offset"); + RNA_def_property_range(prop, -MAXFRAME, MAXFRAME); + RNA_def_property_ui_text(prop, "Frame Offset", + "Subtracted from the current frame to use for " + "looking up the data in the cache file, or to " + "determine which file to use in a file sequence"); + RNA_def_property_update(prop, 0, "rna_CacheFile_update"); + /* ----------------- Axis Conversion ----------------- */ prop = RNA_def_property(srna, "forward_axis", PROP_ENUM, PROP_NONE); |