[Bf-blender-cvs] [d813ee55fdc] master: Fix: Incorrect info message in set material node

Hans Goudey noreply at git.blender.org
Tue Apr 19 20:20:41 CEST 2022


Commit: d813ee55fdc87282d6ee2452e4db4c218e23986d
Author: Hans Goudey
Date:   Tue Apr 19 13:20:19 2022 -0500
Branches: master
https://developer.blender.org/rBd813ee55fdc87282d6ee2452e4db4c218e23986d

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