[Bf-blender-cvs] [a49838ccb0f] master: Tracking: Fix missing camera depsgraph update tag
Sergey Sharybin
noreply at git.blender.org
Sun Jul 28 17:08:06 CEST 2019
Commit: a49838ccb0f647aa5eab84a4858591f6231283ad
Author: Sergey Sharybin
Date: Sun Jul 28 17:07:39 2019 +0200
Branches: master
https://developer.blender.org/rBa49838ccb0f647aa5eab84a4858591f6231283ad
Tracking: Fix missing camera depsgraph update tag
Was causing lack of proper viewport update when camera solve assigned
new focal length to the camera.
===================================================================
M source/blender/editors/space_clip/tracking_ops_solve.c
===================================================================
diff --git a/source/blender/editors/space_clip/tracking_ops_solve.c b/source/blender/editors/space_clip/tracking_ops_solve.c
index ab8a74715fa..806df4dbaff 100644
--- a/source/blender/editors/space_clip/tracking_ops_solve.c
+++ b/source/blender/editors/space_clip/tracking_ops_solve.c
@@ -152,6 +152,7 @@ static void solve_camera_freejob(void *scv)
int width, height;
BKE_movieclip_get_size(clip, &scj->user, &width, &height);
BKE_tracking_camera_to_blender(tracking, scene, camera, width, height);
+ DEG_id_tag_update(&camera->id, ID_RECALC_COPY_ON_WRITE);
WM_main_add_notifier(NC_OBJECT, camera);
}
More information about the Bf-blender-cvs
mailing list