diff options
author | Hans Goudey <h.goudey@me.com> | 2021-10-29 21:17:33 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-10-29 21:17:33 +0300 |
commit | fcf1ba18f0c41187bc7e34e1cdba8d59970a632c (patch) | |
tree | 2b8b39d6752eb311b39ae1e455cb1c7f27e48186 /source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc | |
parent | b5f42029b887be8d475ef471c97d4a84768d1f09 (diff) |
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.
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc b/source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc index fcd82170a8a..312ea7df919 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc @@ -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); |