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:
authorHans Goudey <h.goudey@me.com>2021-10-29 17:41:08 +0300
committerHans Goudey <h.goudey@me.com>2021-10-29 17:41:08 +0300
commit2383628ee11b6e90d34cd010f742c6d0356f5e11 (patch)
treeb79add5831068a45bdf11e0638aeede63bf0d300 /source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
parent7e94499bb3bb64170f826471a86ce0f957eab3a3 (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_subdivision_surface.cc')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc b/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
index 57c0dfc5b09..2b3430a5ed0 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc
@@ -31,15 +31,15 @@ namespace blender::nodes {
static void geo_node_subdivision_surface_declare(NodeDeclarationBuilder &b)
{
- b.add_input<decl::Geometry>("Mesh").supported_type(GEO_COMPONENT_TYPE_MESH);
- b.add_input<decl::Int>("Level").default_value(1).min(0).max(6);
- b.add_input<decl::Float>("Crease")
+ b.add_input<decl::Geometry>(N_("Mesh")).supported_type(GEO_COMPONENT_TYPE_MESH);
+ b.add_input<decl::Int>(N_("Level")).default_value(1).min(0).max(6);
+ b.add_input<decl::Float>(N_("Crease"))
.default_value(0.0f)
.min(0.0f)
.max(1.0f)
.supports_field()
.subtype(PROP_FACTOR);
- b.add_output<decl::Geometry>("Mesh");
+ b.add_output<decl::Geometry>(N_("Mesh"));
}
static void geo_node_subdivision_surface_layout(uiLayout *layout,