From 3a4220001b5831c12e41a28ba473689efdd32a3e Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Thu, 29 Feb 2024 16:12:01 +0100 Subject: [PATCH] EEVEE-Next: Refresh when resizing area light via gizmo When using the area light gizmo in the 3d viewport to resize the area light, the changes where only made visible when EEVEE-Next would rerender. EEVEE and Cycles did refresh accordingly. The reason is that EEVEE and Cycles uses a more general approach of detecting changes. EEVEE-Next listens to exact changes made in the dependency graph. This change fixes this by tagging the lamp without any flags similar to what RNA does. EEVEE and Cycles don't need the general flag for correct working. Pull Request: https://projects.blender.org/blender/blender/pulls/118888 --- source/blender/editors/space_view3d/view3d_gizmo_light.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/space_view3d/view3d_gizmo_light.cc b/source/blender/editors/space_view3d/view3d_gizmo_light.cc index 292445a7556..79f82fa223a 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_light.cc +++ b/source/blender/editors/space_view3d/view3d_gizmo_light.cc @@ -405,7 +405,7 @@ static void gizmo_area_light_prop_matrix_set(const wmGizmo * /*gz*/, la->area_size = len_v3(matrix[0]); } - DEG_id_tag_update(&la->id, ID_RECALC_SYNC_TO_EVAL); + DEG_id_tag_update(&la->id, ID_RECALC_PARAMETERS); WM_main_add_notifier(NC_LAMP | ND_LIGHTING_DRAW, la); }