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:
Damien Picard
2024-11-13 13:46:41 +01:00
committed by Gitea
parent f7ffef07d4
commit 5f52c5ce46

View File

@@ -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. */