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:
parent
476b4c415c
commit
eefe878660
Notes:
blender-bot
2023-03-24 17:05:22 +01:00
Referenced by issue #55360, Camera switch focal length bug
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue