[Bf-blender-cvs] [fdc81be2131] master: Fix T104223: attribute not propagated to Set Curve Radius node
Iliya Katueshenock
noreply at git.blender.org
Thu Feb 2 17:04:44 CET 2023
Commit: fdc81be21310a5aa6eaf9f341795769b27a2205c
Author: Iliya Katueshenock
Date: Thu Feb 2 17:01:54 2023 +0100
Branches: master
https://developer.blender.org/rBfdc81be21310a5aa6eaf9f341795769b27a2205c
Fix T104223: attribute not propagated to Set Curve Radius node
This declaration change tells the evaluation system that the radius
field is evaluated on the input geometry. Which in turn means that
attributes referenced by the radius field should be propagated to
the geometry.
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_set_curve_radius.cc
===================================================================
diff --git a/source/blender/nodes/geometry/nodes/node_geo_set_curve_radius.cc b/source/blender/nodes/geometry/nodes/node_geo_set_curve_radius.cc
index 83f490fa3da..d2cb570f5d0 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_set_curve_radius.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_set_curve_radius.cc
@@ -13,7 +13,7 @@ static void node_declare(NodeDeclarationBuilder &b)
b.add_input<decl::Float>(N_("Radius"))
.min(0.0f)
.default_value(0.005f)
- .supports_field()
+ .field_on_all()
.subtype(PROP_DISTANCE);
b.add_output<decl::Geometry>(N_("Curve")).propagate_all();
}
More information about the Bf-blender-cvs
mailing list