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-07-27 14:12:58 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-07-27 14:12:58 +0400
commit52aa7a4a4c07f915b634a56162c9093ef1fecb09 (patch)
tree0734954c7a67a1d1dde7dffbad8e1894945c47ce /source/blender/blenkernel/intern/mask.c
parentb10a35a9a9128531347e60be530631b39386dcb2 (diff)
Added utility function to return marker's subframe position
Used in mask parenting stuff.
Diffstat (limited to 'source/blender/blenkernel/intern/mask.c')
-rw-r--r--source/blender/blenkernel/intern/mask.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/mask.c b/source/blender/blenkernel/intern/mask.c
index a2a63f67a62..3c008692cbb 100644
--- a/source/blender/blenkernel/intern/mask.c
+++ b/source/blender/blenkernel/intern/mask.c
@@ -1635,9 +1635,8 @@ static int BKE_mask_evaluate_parent(MaskParent *parent, float ctime, float r_co[
user.framenr = ctime;
if (track) {
- MovieTrackingMarker *marker = BKE_tracking_marker_get(track, clip_framenr);
float marker_pos_ofs[2];
- add_v2_v2v2(marker_pos_ofs, marker->pos, track->offset);
+ BKE_tracking_marker_get_subframe_position(track, clip_framenr, marker_pos_ofs);
BKE_mask_coord_from_movieclip(clip, &user, r_co, marker_pos_ofs);
return TRUE;