Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_scene.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 2,589 Lines • ▼ Show 20 Lines | static const EnumPropertyItem *rna_TransformOrientation_impl_itemf(Scene *scene, | ||||
| bool *r_free) | bool *r_free) | ||||
| { | { | ||||
| EnumPropertyItem tmp = {0, "", 0, "", ""}; | EnumPropertyItem tmp = {0, "", 0, "", ""}; | ||||
| EnumPropertyItem *item = NULL; | EnumPropertyItem *item = NULL; | ||||
| int i = V3D_ORIENT_CUSTOM, totitem = 0; | int i = V3D_ORIENT_CUSTOM, totitem = 0; | ||||
| if (include_default) { | if (include_default) { | ||||
| tmp.identifier = "DEFAULT"; | tmp.identifier = "DEFAULT"; | ||||
| tmp.name = "Default"; | tmp.name = N_("Default"); | ||||
| tmp.description = "Use the scene orientation"; | tmp.description = N_("Use the scene orientation"); | ||||
| tmp.value = V3D_ORIENT_DEFAULT; | tmp.value = V3D_ORIENT_DEFAULT; | ||||
| tmp.icon = ICON_OBJECT_ORIGIN; | tmp.icon = ICON_OBJECT_ORIGIN; | ||||
| RNA_enum_item_add(&item, &totitem, &tmp); | RNA_enum_item_add(&item, &totitem, &tmp); | ||||
| tmp.icon = 0; | tmp.icon = 0; | ||||
| RNA_enum_item_add_separator(&item, &totitem); | RNA_enum_item_add_separator(&item, &totitem); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 5,719 Lines • Show Last 20 Lines | |||||