Fix T77043: Incorrect cache invalidation when changing resolution.

Invalidate cache of scene, not scene strips using said scene.
This commit is contained in:
Richard Antalik
2020-06-01 06:21:52 +02:00
parent d4483b6d15
commit 89cd9f110b

View File

@@ -2203,7 +2203,7 @@ static void rna_SceneCamera_update(Main *bmain, Scene *UNUSED(scene), PointerRNA
Scene *scene = (Scene *)ptr->owner_id; Scene *scene = (Scene *)ptr->owner_id;
Object *camera = scene->camera; Object *camera = scene->camera;
BKE_sequence_invalidate_scene_strips(bmain, scene); BKE_sequencer_cache_cleanup(scene);
if (camera && (camera->type == OB_CAMERA)) { if (camera && (camera->type == OB_CAMERA)) {
DEG_id_tag_update(&camera->id, ID_RECALC_GEOMETRY); DEG_id_tag_update(&camera->id, ID_RECALC_GEOMETRY);