Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/intern/node_util.c
| Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | |||||
| void node_math_label(const bNodeTree *UNUSED(ntree), const bNode *node, char *label, int maxlen) | void node_math_label(const bNodeTree *UNUSED(ntree), const bNode *node, char *label, int maxlen) | ||||
| { | { | ||||
| const char *name; | const char *name; | ||||
| bool enum_label = RNA_enum_name(rna_enum_node_math_items, node->custom1, &name); | bool enum_label = RNA_enum_name(rna_enum_node_math_items, node->custom1, &name); | ||||
| if (!enum_label) { | if (!enum_label) { | ||||
| name = "Unknown"; | name = "Unknown"; | ||||
| } | } | ||||
| BLI_strncpy(label, IFACE_(name), maxlen); | BLI_strncpy(label, CTX_IFACE_(BLT_I18NCONTEXT_ID_NODETREE, name), maxlen); | ||||
| } | } | ||||
| void node_vector_math_label(const bNodeTree *UNUSED(ntree), | void node_vector_math_label(const bNodeTree *UNUSED(ntree), | ||||
| const bNode *node, | const bNode *node, | ||||
| char *label, | char *label, | ||||
| int maxlen) | int maxlen) | ||||
| { | { | ||||
| const char *name; | const char *name; | ||||
| ▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines | |||||