Fix #126024: Separate Geometry nodes does not propagate grease pencil materials
Pull Request: https://projects.blender.org/blender/blender/pulls/128664
This commit is contained in:
committed by
Jacques Lucke
parent
7777fca066
commit
6487fc96dd
@@ -143,6 +143,7 @@ static std::optional<GreasePencil *> separate_grease_pencil_layer_selection(
|
||||
|
||||
GreasePencil *dst_grease_pencil = BKE_grease_pencil_new_nomain();
|
||||
BKE_grease_pencil_duplicate_drawing_array(&src_grease_pencil, dst_grease_pencil);
|
||||
BKE_grease_pencil_copy_parameters(src_grease_pencil, *dst_grease_pencil);
|
||||
selection.foreach_index([&](const int index) {
|
||||
const bke::greasepencil::Layer &src_layer = src_grease_pencil.layer(index);
|
||||
dst_grease_pencil->duplicate_layer(src_layer);
|
||||
|
||||
Reference in New Issue
Block a user