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-06-20 14:54:56 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-06-20 14:54:56 +0400
commit470ad6fc0e729e335718d1152e2348db159e4514 (patch)
tree60ab5ebe8ce11cc193e28d9b599da5cbdd072d65 /source/blender/blenkernel/intern/movieclip.c
parentb07edbc6d6f3796fbf3d036582a1beec35e08a59 (diff)
Do not check result of BKE_tracking_marker_get -- it shall always
return valid marker. If not -- let blender crash, because that means something went really bad and silencing this isn't good idea. Also made mask parenting to tracking data aware of clip's start frame.
Diffstat (limited to 'source/blender/blenkernel/intern/movieclip.c')
-rw-r--r--source/blender/blenkernel/intern/movieclip.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/movieclip.c b/source/blender/blenkernel/intern/movieclip.c
index 04edc58157b..44169cd3d6a 100644
--- a/source/blender/blenkernel/intern/movieclip.c
+++ b/source/blender/blenkernel/intern/movieclip.c
@@ -1270,12 +1270,12 @@ void BKE_movieclip_unlink(Main *bmain, MovieClip *clip)
clip->id.us = 0;
}
-int BKE_movieclip_remap_scene_to_clip_frame(MovieClip *clip, int framenr)
+float BKE_movieclip_remap_scene_to_clip_frame(MovieClip *clip, float framenr)
{
- return framenr - clip->start_frame + 1;
+ return framenr - (float) clip->start_frame + 1.0f;
}
-int BKE_movieclip_remap_clip_to_scene_frame(MovieClip *clip, int framenr)
+float BKE_movieclip_remap_clip_to_scene_frame(MovieClip *clip, float framenr)
{
- return framenr + clip->start_frame - 1;
+ return framenr + (float) clip->start_frame - 1.0f;
}