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:
@@ -127,6 +127,10 @@ static GeometrySet separate_geometry_set(const GeometrySet &set_in,
|
|||||||
{
|
{
|
||||||
GeometrySet set_out;
|
GeometrySet set_out;
|
||||||
for (const GeometryComponent *component : set_in.get_components_for_read()) {
|
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());
|
GeometryComponent &out_component = set_out.get_component_for_write(component->type());
|
||||||
separate_points_from_component(*component, out_component, mask_name, invert);
|
separate_points_from_component(*component, out_component, mask_name, invert);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user