Fix: new Grease Pencil layer not selected when added from the viewport
When adding a new layer from the viewport, the newly created layer is set as active, which is visible in the properties panel, but the selection in the dopesheet was not updated accordingly, due to a missing notifier which is added in this patch.
This commit is contained in:
parent
8529458cc7
commit
9137a4f03c
Notes:
blender-bot
2023-04-19 22:54:54 +02:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
|
@ -237,6 +237,7 @@ static int gpencil_layer_add_exec(bContext *C, wmOperator *op)
|
|||
ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY | ID_RECALC_COPY_ON_WRITE);
|
||||
}
|
||||
WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_EDITED, NULL);
|
||||
WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_SELECTED, NULL);
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue