Fix T89234: Gpencil Separate doesn't copy settings in Stroke/Point mode
Some values were not copied from the old layer to the new one as Tint or Opacity factor. The error affected to Strokes and Point mode
This commit is contained in:
parent
ed4222258e
commit
577d6d3f87
Notes:
blender-bot
2023-02-14 08:25:14 +01:00
Referenced by issue #89234, Grease Pencil: Layer Settings does not copy on "Separate Selected Points"
|
@ -4618,6 +4618,11 @@ static int gpencil_stroke_separate_exec(bContext *C, wmOperator *op)
|
|||
/* add layer if not created before */
|
||||
if (gpl_dst == NULL) {
|
||||
gpl_dst = BKE_gpencil_layer_addnew(gpd_dst, gpl->info, false, false);
|
||||
gpl_dst->line_change = gpl->line_change;
|
||||
copy_v4_v4(gpl_dst->tintcolor, gpl->tintcolor);
|
||||
gpl_dst->opacity = gpl->opacity;
|
||||
gpl_dst->blend_mode = gpl->blend_mode;
|
||||
gpl_dst->vertex_paint_opacity = gpl->vertex_paint_opacity;
|
||||
}
|
||||
|
||||
/* add frame if not created before */
|
||||
|
|
Loading…
Reference in New Issue