[Bf-blender-cvs] [cc30445f5d9] draw-deferred-compilation-experiment: Fix: Incorrect info message in set material node
Hans Goudey
noreply at git.blender.org
Thu Apr 21 11:14:07 CEST 2022
Commit: cc30445f5d9ddb4180fa53c12c8de7f200fb9502
Author: Hans Goudey
Date: Tue Apr 19 13:20:19 2022 -0500
Branches: draw-deferred-compilation-experiment
https://developer.blender.org/rBcc30445f5d9ddb4180fa53c12c8de7f200fb9502
Fix: Incorrect info message in set material node
The node does have support for curves since c4f7f59c659f7d986e.
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_set_material.cc
===================================================================
diff --git a/source/blender/nodes/geometry/nodes/node_geo_set_material.cc b/source/blender/nodes/geometry/nodes/node_geo_set_material.cc
index 296b40c6c49..507c6e81b1f 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_set_material.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_set_material.cc
@@ -18,8 +18,10 @@ namespace blender::nodes::node_geo_set_material_cc {
static void node_declare(NodeDeclarationBuilder &b)
{
b.add_input<decl::Geometry>(N_("Geometry"))
- .supported_type(
- {GEO_COMPONENT_TYPE_MESH, GEO_COMPONENT_TYPE_VOLUME, GEO_COMPONENT_TYPE_POINT_CLOUD});
+ .supported_type({GEO_COMPONENT_TYPE_MESH,
+ GEO_COMPONENT_TYPE_VOLUME,
+ GEO_COMPONENT_TYPE_POINT_CLOUD,
+ GEO_COMPONENT_TYPE_CURVE});
b.add_input<decl::Bool>(N_("Selection")).default_value(true).hide_value().supports_field();
b.add_input<decl::Material>(N_("Material")).hide_label();
b.add_output<decl::Geometry>(N_("Geometry"));
More information about the Bf-blender-cvs
mailing list