Fix: I18n: Integer Math node title used wrong translation context
The integer math node items used the proper translation context, but not the translation for the node label. Reported by ziweidao. Pull Request: https://projects.blender.org/blender/blender/pulls/130225
This commit is contained in:
@@ -108,7 +108,7 @@ static void node_label(const bNodeTree * /*ntree*/, const bNode *node, char *lab
|
||||
if (!enum_label) {
|
||||
name = "Unknown";
|
||||
}
|
||||
BLI_strncpy(label, IFACE_(name), maxlen);
|
||||
BLI_strncpy(label, CTX_IFACE_(BLT_I18NCONTEXT_ID_NODETREE, name), maxlen);
|
||||
}
|
||||
|
||||
/* Derived from `divide_round_i` but fixed to be safe and handle negative inputs. */
|
||||
|
||||
Reference in New Issue
Block a user