Fix T55360: marker-based Camera switch focal length bug.

Scene was missing DEG tag update when its camera was changed based on
active 'camera marker'.
This commit is contained in:
Bastien Montagne 2018-06-25 16:21:24 +02:00
parent 476b4c415c
commit eefe878660
Notes: blender-bot 2023-03-24 17:05:22 +01:00
Referenced by issue #55360, Camera switch focal length bug
2 changed files with 2 additions and 0 deletions

View File

@ -1140,6 +1140,7 @@ int BKE_scene_camera_switch_update(Scene *scene)
Object *camera = BKE_scene_camera_switch_find(scene);
if (camera) {
scene->camera = camera;
DEG_id_tag_update(&scene->id, DEG_TAG_COPY_ON_WRITE);
return 1;
}
#else

View File

@ -1680,6 +1680,7 @@ void ED_update_for_newframe(Main *bmain, Depsgraph *depsgraph)
for (sc = bmain->screen.first; sc; sc = sc->id.next) {
BKE_screen_view3d_scene_sync(sc, scene);
}
DEG_id_tag_update(&scene->id, DEG_TAG_COPY_ON_WRITE);
}
#endif