Fix T59133: Area light size not updating from viewport gizmo.
When we are directly affecting DNA, we need to handle update ourself...
This commit is contained in:
parent
f2796da2e5
commit
adaadb2fa0
Notes:
blender-bot
2023-02-14 06:19:41 +01:00
Referenced by issue #59133, Area light size
|
@ -30,6 +30,8 @@
|
|||
#include "BKE_context.h"
|
||||
#include "BKE_object.h"
|
||||
|
||||
#include "DEG_depsgraph.h"
|
||||
|
||||
#include "DNA_object_types.h"
|
||||
#include "DNA_lamp_types.h"
|
||||
|
||||
|
@ -154,6 +156,9 @@ static void gizmo_area_lamp_prop_matrix_set(
|
|||
else {
|
||||
la->area_size = len_v3(matrix[0]);
|
||||
}
|
||||
|
||||
DEG_id_tag_update(&la->id, ID_RECALC_COPY_ON_WRITE);
|
||||
WM_main_add_notifier(NC_LAMP | ND_LIGHTING_DRAW, la);
|
||||
}
|
||||
|
||||
static bool WIDGETGROUP_lamp_area_poll(const bContext *C, wmGizmoGroupType *UNUSED(gzgt))
|
||||
|
|
Loading…
Reference in New Issue