diff options
author | Hans Goudey <h.goudey@me.com> | 2021-10-29 17:41:08 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-10-29 17:41:08 +0300 |
commit | 2383628ee11b6e90d34cd010f742c6d0356f5e11 (patch) | |
tree | b79add5831068a45bdf11e0638aeede63bf0d300 /source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc | |
parent | 7e94499bb3bb64170f826471a86ce0f957eab3a3 (diff) |
Nodes: Add translation markers to new socket names and descriptions
As part of the refactor to the node declaration builders, we had hoped
to add a regular expression specifically for these socket names, but
recent discussions have revealed that using the translation marker
macros is the preferred solution.
If the names and descriptions were exposed to RNA, these would not
be necessary. However, that may be quite complicated, since sockets
are all instances of the same RNA types.
Differential Revision: https://developer.blender.org/D13033
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc index 5b6dfb01f38..27d7d22b106 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc @@ -29,16 +29,16 @@ namespace blender::nodes { static void geo_node_curve_fillet_declare(NodeDeclarationBuilder &b) { - b.add_input<decl::Geometry>("Curve").supported_type(GEO_COMPONENT_TYPE_CURVE); - b.add_input<decl::Int>("Count").default_value(1).min(1).max(1000).supports_field(); - b.add_input<decl::Float>("Radius") + b.add_input<decl::Geometry>(N_("Curve")).supported_type(GEO_COMPONENT_TYPE_CURVE); + b.add_input<decl::Int>(N_("Count")).default_value(1).min(1).max(1000).supports_field(); + b.add_input<decl::Float>(N_("Radius")) .min(0.0f) .max(FLT_MAX) .subtype(PropertySubType::PROP_DISTANCE) .default_value(0.25f) .supports_field(); - b.add_input<decl::Bool>("Limit Radius"); - b.add_output<decl::Geometry>("Curve"); + b.add_input<decl::Bool>(N_("Limit Radius")); + b.add_output<decl::Geometry>(N_("Curve")); } static void geo_node_curve_fillet_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) |