From 81f439ff376e5c191acec4e4843f463c13d856c3 Mon Sep 17 00:00:00 2001 From: Jesse Yurkovich Date: Tue, 15 Oct 2024 20:24:32 +0200 Subject: [PATCH] Fix #128916: Tag Light ID when applying scale When applying scale on a light in the viewport, ensure we tag the light itself for updating. Otherwise, the viewport get confused over which size to use. Pull Request: https://projects.blender.org/blender/blender/pulls/129030 --- source/blender/editors/object/object_transform.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blender/editors/object/object_transform.cc b/source/blender/editors/object/object_transform.cc index 5359d131813..1d7d1ae043b 100644 --- a/source/blender/editors/object/object_transform.cc +++ b/source/blender/editors/object/object_transform.cc @@ -1044,6 +1044,11 @@ static int apply_objects_internal(bContext *C, la->area_size *= rsmat[0][0]; la->area_sizey *= rsmat[1][1]; la->area_sizez *= rsmat[2][2]; + + /* Explicit tagging is required for Lamp ID because, unlike Geometry IDs like Mesh, + * it is not covered by the `ID_RECALC_GEOMETRY` flag applied to the object at the end + * of this loop. */ + DEG_id_tag_update(&la->id, ID_RECALC_PARAMETERS); } else { continue;