diff options
-rw-r--r-- | source/blender/blenkernel/intern/tracking.c | 2 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/tracking.c b/source/blender/blenkernel/intern/tracking.c index 3100917cd0c..df10d1374bb 100644 --- a/source/blender/blenkernel/intern/tracking.c +++ b/source/blender/blenkernel/intern/tracking.c @@ -1462,7 +1462,9 @@ MovieDistortion *BKE_tracking_distortion_new(void) distortion = MEM_callocN(sizeof(MovieDistortion), "BKE_tracking_distortion_create"); +#ifdef WITH_LIBMV distortion->intrinsics = libmv_CameraIntrinsicsNewEmpty(); +#endif return distortion; } diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c index ed27016cf67..45deab2d8de 100644 --- a/source/blender/editors/mesh/editmesh_knife.c +++ b/source/blender/editors/mesh/editmesh_knife.c @@ -3297,8 +3297,8 @@ static bool edbm_mesh_knife_face_isect(ARegion *ar, LinkNode *polys, BMFace *f, add_v3_v3v3(co_b, co_a, tangent); } - ED_view3d_project_float_v3_m4(ar, co_a, co_ss_a, projmat); - ED_view3d_project_float_v3_m4(ar, co_b, co_ss_b, projmat); + ED_view3d_project_float_v2_m4(ar, co_a, co_ss_a, projmat); + ED_view3d_project_float_v2_m4(ar, co_b, co_ss_b, projmat); interp_v2_v2v2(co_ss, co_ss_a, co_ss_b, 0.005f); /* check */ |