Geometry Nodes: propagate material from guides in Interpolate Curves node

This was missing from the original implementation.
This commit is contained in:
Jacques Lucke 2023-01-24 16:24:00 +01:00
parent 6e4e5f6484
commit 813425877b
1 changed files with 5 additions and 0 deletions

View File

@ -747,6 +747,11 @@ static GeometrySet generate_interpolated_curves(
all_neighbor_indices,
all_neighbor_weights);
if (guide_curves_id.mat != nullptr) {
child_curves_id->mat = static_cast<Material **>(MEM_dupallocN(guide_curves_id.mat));
child_curves_id->totcol = guide_curves_id.totcol;
}
return GeometrySet::create_with_curves(child_curves_id);
}