diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-05-29 17:11:08 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-05-29 18:05:32 +0300 |
commit | e2bac484e02a26616419a4b51385e7068545c44b (patch) | |
tree | 3a747d88564272079f710b35280a35357d2f7b44 /source/blender/editors/transform/transform_snap_object.c | |
parent | 36e9ed98e7cbccdf3e1b3085a4be2679aec5a869 (diff) |
Use correct time for curve parent evaluation
Time should alwaus come from depsgraph, not scene.
Diffstat (limited to 'source/blender/editors/transform/transform_snap_object.c')
-rw-r--r-- | source/blender/editors/transform/transform_snap_object.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c index 29497fe801c..d3092fa18cd 100644 --- a/source/blender/editors/transform/transform_snap_object.c +++ b/source/blender/editors/transform/transform_snap_object.c @@ -1633,6 +1633,7 @@ static short snapCamera( { short retval = 0; + Depsgraph *depsgraph = sctx->depsgraph; Scene *scene = sctx->scene; bool is_persp = snapdata->view_proj == VIEW_PROJ_PERSP; @@ -1657,7 +1658,7 @@ static short snapCamera( tracking = &clip->tracking; - BKE_tracking_get_camera_object_matrix(scene, object, orig_camera_mat); + BKE_tracking_get_camera_object_matrix(depsgraph, scene, object, orig_camera_mat); invert_m4_m4(orig_camera_imat, orig_camera_mat); invert_m4_m4(imat, obmat); |