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/composite/nodes/node_composite_setalpha.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/composite/nodes/node_composite_setalpha.cc')
-rw-r--r--source/blender/nodes/composite/nodes/node_composite_setalpha.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_setalpha.cc b/source/blender/nodes/composite/nodes/node_composite_setalpha.cc
index 07a7ffcb426..f59ba76f0c5 100644
--- a/source/blender/nodes/composite/nodes/node_composite_setalpha.cc
+++ b/source/blender/nodes/composite/nodes/node_composite_setalpha.cc
@@ -29,9 +29,9 @@ namespace blender::nodes {
static void cmp_node_setalpha_declare(NodeDeclarationBuilder &b)
{
- b.add_input<decl::Color>("Image").default_value({1.0f, 1.0f, 1.0f, 1.0f});
- b.add_input<decl::Float>("Alpha").default_value(1.0f).min(0.0f).max(1.0f);
- b.add_output<decl::Color>("Image");
+ b.add_input<decl::Color>(N_("Image")).default_value({1.0f, 1.0f, 1.0f, 1.0f});
+ b.add_input<decl::Float>(N_("Alpha")).default_value(1.0f).min(0.0f).max(1.0f);
+ b.add_output<decl::Color>(N_("Image"));
}
} // namespace blender::nodes