Commit: fddb76e9af8de34852cb9906abd1de43ad9f24d3 Author: Amelie Fondevilla Date: Tue Jan 10 14:18:09 2023 +0100 Branches: master https://developer.blender.org/rBfddb76e9af8de34852cb9906abd1de43ad9f24d3
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. =================================================================== M source/blender/editors/gpencil/gpencil_data.c =================================================================== diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c index 4f61016215a..c876832bc0c 100644 --- a/source/blender/editors/gpencil/gpencil_data.c +++ b/source/blender/editors/gpencil/gpencil_data.c @@ -247,6 +247,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; } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs