Fix: Incorrect component type warning in points to volume node

This node doesn't only support point clouds, it supports any geometry
component type with points, so meshes, curves, and point clouds.
We could explicitly list them to add a warning for volumes, but
that wouldn't really have any practical benefit, and isn't done
elsewhere.
This commit is contained in:
Hans Goudey 2021-10-29 13:17:33 -05:00
parent b5f42029b8
commit fcf1ba18f0
Notes: blender-bot 2023-02-14 02:22:13 +01:00
Referenced by issue #92655, 3.0b crash after splitting area
Referenced by issue #92645, OSL: Blender crashes when activating object with OSL material (still)
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ namespace blender::nodes {
static void geo_node_points_to_volume_declare(NodeDeclarationBuilder &b)
{
b.add_input<decl::Geometry>(N_("Points")).supported_type(GEO_COMPONENT_TYPE_POINT_CLOUD);
b.add_input<decl::Geometry>(N_("Points"));
b.add_input<decl::Float>(N_("Density")).default_value(1.0f).min(0.0f);
b.add_input<decl::Float>(N_("Voxel Size")).default_value(0.3f).min(0.01f).subtype(PROP_DISTANCE);
b.add_input<decl::Float>(N_("Voxel Amount")).default_value(64.0f).min(0.0f);