Fix T88452: Point Separate crash on curve component

The point separate node should create a point cloud from control points
in this case, but for now disable the node on curves to avoid the crash.
This commit is contained in:
2021-05-27 09:37:19 -04:00
parent a12fd5c3ad
commit 5621a8ed7f

View File

@@ -127,6 +127,10 @@ static GeometrySet separate_geometry_set(const GeometrySet &set_in,
{
GeometrySet set_out;
for (const GeometryComponent *component : set_in.get_components_for_read()) {
if (component->type() == GEO_COMPONENT_TYPE_CURVE) {
/* Don't support the curve component for now, even though it has a point domain. */
continue;
}
GeometryComponent &out_component = set_out.get_component_for_write(component->type());
separate_points_from_component(*component, out_component, mask_name, invert);
}