Cleanup: Geometry Nodes: Unnecessary components to check #110439
|
@ -227,10 +227,7 @@ static const GeometryComponent *find_source_component(const GeometrySet &geometr
|
|||
/* Choose the other component based on a consistent order, rather than some more complicated
|
||||
* heuristic. This is the same order visible in the spreadsheet and used in the ray-cast node. */
|
||||
static const Array<GeometryComponent::Type> supported_types = {
|
||||
GeometryComponent::Type::Mesh,
|
||||
GeometryComponent::Type::PointCloud,
|
||||
GeometryComponent::Type::Curve,
|
||||
GeometryComponent::Type::Instance};
|
||||
GeometryComponent::Type::Mesh, GeometryComponent::Type::PointCloud};
|
||||
for (const GeometryComponent::Type src_type : supported_types) {
|
||||
if (component_is_available(geometry, src_type, domain)) {
|
||||
return geometry.get_component(src_type);
|
||||
|
|
Loading…
Reference in New Issue