Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_curve_primitive_spiral.cc')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_curve_primitive_spiral.cc18
1 files changed, 11 insertions, 7 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_spiral.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_spiral.cc
index 7292fafc8b0..1dc9cd7f107 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_spiral.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_spiral.cc
@@ -22,13 +22,17 @@ namespace blender::nodes {
static void geo_node_curve_primitive_spiral_declare(NodeDeclarationBuilder &b)
{
- b.add_input<decl::Int>("Resolution").default_value(32).min(1).max(1024).subtype(PROP_UNSIGNED);
- b.add_input<decl::Float>("Rotations").default_value(2.0f).min(0.0f);
- b.add_input<decl::Float>("Start Radius").default_value(1.0f).subtype(PROP_DISTANCE);
- b.add_input<decl::Float>("End Radius").default_value(2.0f).subtype(PROP_DISTANCE);
- b.add_input<decl::Float>("Height").default_value(2.0f).subtype(PROP_DISTANCE);
- b.add_input<decl::Bool>("Reverse");
- b.add_output<decl::Geometry>("Curve");
+ b.add_input<decl::Int>(N_("Resolution"))
+ .default_value(32)
+ .min(1)
+ .max(1024)
+ .subtype(PROP_UNSIGNED);
+ b.add_input<decl::Float>(N_("Rotations")).default_value(2.0f).min(0.0f);
+ b.add_input<decl::Float>(N_("Start Radius")).default_value(1.0f).subtype(PROP_DISTANCE);
+ b.add_input<decl::Float>(N_("End Radius")).default_value(2.0f).subtype(PROP_DISTANCE);
+ b.add_input<decl::Float>(N_("Height")).default_value(2.0f).subtype(PROP_DISTANCE);
+ b.add_input<decl::Bool>(N_("Reverse"));
+ b.add_output<decl::Geometry>(N_("Curve"));
}
static std::unique_ptr<CurveEval> create_spiral_curve(const float rotations,