Fix #129543: GPv3: Set new group active
Similar to layers when new group is added, mark that group as active. Pull Request: https://projects.blender.org/blender/blender/pulls/129785
This commit is contained in:
parent
822907a68d
commit
7a19fe8f97
@ -379,6 +379,7 @@ static int grease_pencil_layer_group_add_exec(bContext *C, wmOperator *op)
|
||||
}
|
||||
|
||||
MEM_SAFE_FREE(new_layer_group_name);
|
||||
grease_pencil.set_active_node(&new_group.as_node());
|
||||
|
||||
DEG_id_tag_update(&grease_pencil.id, ID_RECALC_GEOMETRY);
|
||||
WM_event_add_notifier(C, NC_GEOM | ND_DATA, &grease_pencil);
|
||||
|
Loading…
x
Reference in New Issue
Block a user