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:
Amélie Fondevilla 2023-01-10 14:18:09 +01:00 committed by Philipp Oeser
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
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}