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
This commit is contained in:
parent
3dc483982c
commit
3a4220001b
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user