Fix #135277: mark scene parameters as dirty on camera switch
Geometry nodes using the active camera did not get updated when the camera is switched by a timeline marker. Pull Request: https://projects.blender.org/blender/blender/pulls/135546
This commit is contained in:
committed by
Jacques Lucke
parent
1f780a5caa
commit
05ec635e6b
@@ -2214,7 +2214,7 @@ bool BKE_scene_camera_switch_update(Scene *scene)
|
||||
Object *camera = BKE_scene_camera_switch_find(scene);
|
||||
if (camera && (camera != scene->camera)) {
|
||||
scene->camera = camera;
|
||||
DEG_id_tag_update(&scene->id, ID_RECALC_SYNC_TO_EVAL);
|
||||
DEG_id_tag_update(&scene->id, ID_RECALC_SYNC_TO_EVAL | ID_RECALC_PARAMETERS);
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
|
||||
@@ -1923,7 +1923,7 @@ void ED_update_for_newframe(Main *bmain, Depsgraph *depsgraph)
|
||||
LISTBASE_FOREACH (bScreen *, screen, &bmain->screens) {
|
||||
BKE_screen_view3d_scene_sync(screen, scene);
|
||||
}
|
||||
DEG_id_tag_update(&scene->id, ID_RECALC_SYNC_TO_EVAL);
|
||||
DEG_id_tag_update(&scene->id, ID_RECALC_SYNC_TO_EVAL | ID_RECALC_PARAMETERS);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user