diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-09-24 19:26:54 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-09-24 19:26:54 +0400 |
commit | 9cb33ec68f742928abbc907585a52c2f5b1465b0 (patch) | |
tree | 13ecab7e5a3f51ecf8acc584e8ebfb353f3edcf6 /source/blender | |
parent | b4ccf4562cd423290e40674c87afedfd7e967262 (diff) |
Expose movie clip duration property to RNA
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesrna/intern/rna_movieclip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_movieclip.c b/source/blender/makesrna/intern/rna_movieclip.c index c221d1175df..efa170f156d 100644 --- a/source/blender/makesrna/intern/rna_movieclip.c +++ b/source/blender/makesrna/intern/rna_movieclip.c @@ -299,6 +299,12 @@ static void rna_def_movieclip(BlenderRNA *brna) "(affects only how footage is loading, does not change data associated with a clip)"); RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, "rna_MovieClip_reload_update"); + /* length */ + prop = RNA_def_property(srna, "duration", PROP_INT, PROP_NONE); + RNA_def_property_clear_flag(prop, PROP_EDITABLE); + RNA_def_property_int_sdna(prop, NULL, "len"); + RNA_def_property_ui_text(prop, "Duration", "Detected duration of movie clip in frames"); + /* color management */ prop = RNA_def_property(srna, "colorspace_settings", PROP_POINTER, PROP_NONE); RNA_def_property_pointer_sdna(prop, NULL, "colorspace_settings"); |