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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-03-26 17:36:22 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-03-26 17:36:22 +0400
commit69c9451c3e479588b72f4561de6ff7705ee003b4 (patch)
treeb4348f5271d644975b3d87bd4536720e2a3b396d /source/blender/blenkernel/intern/movieclip.c
parentdbfe971c06e4e029b679b4a178258974e9845ad1 (diff)
- MovieClip strips now have got valid color for older saved files
- Update Strip Length will now properly update lenght of movie clip strips created from movies before lenght was added there.
Diffstat (limited to 'source/blender/blenkernel/intern/movieclip.c')
-rw-r--r--source/blender/blenkernel/intern/movieclip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/movieclip.c b/source/blender/blenkernel/intern/movieclip.c
index 585c1a7dc14..55f257e0feb 100644
--- a/source/blender/blenkernel/intern/movieclip.c
+++ b/source/blender/blenkernel/intern/movieclip.c
@@ -917,8 +917,8 @@ void BKE_movieclip_get_size(MovieClip *clip, MovieClipUser *user, int *width, in
int BKE_movieclip_get_duration(MovieClip *clip)
{
- if (!clip->len && clip->anim) {
- return IMB_anim_get_duration(clip->anim, clip->proxy.tc);
+ if (!clip->len) {
+ movieclip_calc_length(clip);
}
return clip->len;