Fix: crash when separating grease pencil in geometry nodes

This commit is contained in:
Jacques Lucke
2024-02-08 16:03:00 +01:00
parent 8f9ca23b9e
commit faaa8d4c79
@@ -249,8 +249,7 @@ void separate_geometry(bke::GeometrySet &geometry_set,
continue;
}
const bke::CurvesGeometry &src_curves = drawing->strokes();
const bke::GreasePencilLayerFieldContext field_context(
grease_pencil, AttrDomain::Curve, layer_index);
const bke::GreasePencilLayerFieldContext field_context(grease_pencil, domain, layer_index);
std::optional<bke::CurvesGeometry> dst_curves = separate_curves_selection(
src_curves, field_context, selection, domain, propagation_info);
if (!dst_curves) {