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/shader/nodes/node_shader_map_range.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/shader/nodes/node_shader_map_range.cc')
-rw-r--r--source/blender/nodes/shader/nodes/node_shader_map_range.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_map_range.cc b/source/blender/nodes/shader/nodes/node_shader_map_range.cc
index 5ea194ddc83..c866a154e8c 100644
--- a/source/blender/nodes/shader/nodes/node_shader_map_range.cc
+++ b/source/blender/nodes/shader/nodes/node_shader_map_range.cc
@@ -30,13 +30,13 @@ namespace blender::nodes {
static void sh_node_map_range_declare(NodeDeclarationBuilder &b)
{
b.is_function_node();
- b.add_input<decl::Float>("Value").min(-10000.0f).max(10000.0f).default_value(1.0f);
- b.add_input<decl::Float>("From Min").min(-10000.0f).max(10000.0f);
- b.add_input<decl::Float>("From Max").min(-10000.0f).max(10000.0f).default_value(1.0f);
- b.add_input<decl::Float>("To Min").min(-10000.0f).max(10000.0f);
- b.add_input<decl::Float>("To Max").min(-10000.0f).max(10000.0f).default_value(1.0f);
- b.add_input<decl::Float>("Steps").min(-10000.0f).max(10000.0f).default_value(4.0f);
- b.add_output<decl::Float>("Result");
+ b.add_input<decl::Float>(N_("Value")).min(-10000.0f).max(10000.0f).default_value(1.0f);
+ b.add_input<decl::Float>(N_("From Min")).min(-10000.0f).max(10000.0f);
+ b.add_input<decl::Float>(N_("From Max")).min(-10000.0f).max(10000.0f).default_value(1.0f);
+ b.add_input<decl::Float>(N_("To Min")).min(-10000.0f).max(10000.0f);
+ b.add_input<decl::Float>(N_("To Max")).min(-10000.0f).max(10000.0f).default_value(1.0f);
+ b.add_input<decl::Float>(N_("Steps")).min(-10000.0f).max(10000.0f).default_value(4.0f);
+ b.add_output<decl::Float>(N_("Result"));
};
} // namespace blender::nodes