Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nodetree.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 822 Lines • ▼ Show 20 Lines | static const EnumPropertyItem *rna_node_static_type_itemf(bContext *UNUSED(C), | ||||
| int totitem = 0; | int totitem = 0; | ||||
| /* hack, don't want to add include path to RNA just for this, since in the future RNA types | /* hack, don't want to add include path to RNA just for this, since in the future RNA types | ||||
| * for nodes should be defined locally at runtime anyway ... | * for nodes should be defined locally at runtime anyway ... | ||||
| */ | */ | ||||
| tmp.value = NODE_CUSTOM; | tmp.value = NODE_CUSTOM; | ||||
| tmp.identifier = "CUSTOM"; | tmp.identifier = "CUSTOM"; | ||||
| tmp.name = "Custom"; | tmp.name = N_("Custom"); | ||||
| tmp.description = "Custom Node"; | tmp.description = N_("Custom Node"); | ||||
| tmp.icon = ICON_NONE; | tmp.icon = ICON_NONE; | ||||
| RNA_enum_item_add(&item, &totitem, &tmp); | RNA_enum_item_add(&item, &totitem, &tmp); | ||||
| tmp.value = NODE_CUSTOM_GROUP; | tmp.value = NODE_CUSTOM_GROUP; | ||||
| tmp.identifier = "CUSTOM GROUP"; | tmp.identifier = "CUSTOM GROUP"; | ||||
| tmp.name = "CustomGroup"; | tmp.name = N_("CustomGroup"); | ||||
| tmp.description = "Custom Group Node"; | tmp.description = N_("Custom Group Node"); | ||||
| tmp.icon = ICON_NONE; | tmp.icon = ICON_NONE; | ||||
| RNA_enum_item_add(&item, &totitem, &tmp); | RNA_enum_item_add(&item, &totitem, &tmp); | ||||
| tmp.value = NODE_UNDEFINED; | tmp.value = NODE_UNDEFINED; | ||||
| tmp.identifier = "UNDEFINED"; | tmp.identifier = "UNDEFINED"; | ||||
| tmp.name = "UNDEFINED"; | tmp.name = N_("UNDEFINED"); | ||||
| tmp.description = ""; | tmp.description = ""; | ||||
| tmp.icon = ICON_NONE; | tmp.icon = ICON_NONE; | ||||
| RNA_enum_item_add(&item, &totitem, &tmp); | RNA_enum_item_add(&item, &totitem, &tmp); | ||||
| # define DefNode(Category, ID, DefFunc, EnumName, StructName, UIName, UIDesc) \ | # define DefNode(Category, ID, DefFunc, EnumName, StructName, UIName, UIDesc) \ | ||||
| if (STREQ(#Category, "Node")) { \ | if (STREQ(#Category, "Node")) { \ | ||||
| tmp.value = ID; \ | tmp.value = ID; \ | ||||
| tmp.identifier = EnumName; \ | tmp.identifier = EnumName; \ | ||||
| ▲ Show 20 Lines • Show All 12,185 Lines • Show Last 20 Lines | |||||