Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 3,074 Lines • ▼ Show 20 Lines | const EnumPropertyItem *rna_SpaceSpreadsheet_attribute_domain_itemf(bContext *C, | ||||
| int items_len = 0; | int items_len = 0; | ||||
| for (const EnumPropertyItem *item = rna_enum_attribute_domain_items; item->identifier != NULL; | for (const EnumPropertyItem *item = rna_enum_attribute_domain_items; item->identifier != NULL; | ||||
| item++) { | item++) { | ||||
| if (component_type == GEO_COMPONENT_TYPE_MESH) { | if (component_type == GEO_COMPONENT_TYPE_MESH) { | ||||
| if (!ELEM(item->value, | if (!ELEM(item->value, | ||||
| ATTR_DOMAIN_CORNER, | ATTR_DOMAIN_CORNER, | ||||
| ATTR_DOMAIN_EDGE, | ATTR_DOMAIN_EDGE, | ||||
| ATTR_DOMAIN_POINT, | ATTR_DOMAIN_POINT, | ||||
| ATTR_DOMAIN_POLYGON)) { | ATTR_DOMAIN_FACE)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| } | } | ||||
| if (component_type == GEO_COMPONENT_TYPE_POINT_CLOUD) { | if (component_type == GEO_COMPONENT_TYPE_POINT_CLOUD) { | ||||
| if (item->value != ATTR_DOMAIN_POINT) { | if (item->value != ATTR_DOMAIN_POINT) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 4,222 Lines • ▼ Show 20 Lines | static void rna_def_space_spreadsheet(BlenderRNA *brna) | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| static const EnumPropertyItem geometry_component_type_items[] = { | static const EnumPropertyItem geometry_component_type_items[] = { | ||||
| {GEO_COMPONENT_TYPE_MESH, | {GEO_COMPONENT_TYPE_MESH, | ||||
| "MESH", | "MESH", | ||||
| ICON_MESH_DATA, | ICON_MESH_DATA, | ||||
| "Mesh", | "Mesh", | ||||
| "Mesh component containing point, corner, edge and polygon data"}, | "Mesh component containing point, corner, edge and face data"}, | ||||
| {GEO_COMPONENT_TYPE_POINT_CLOUD, | {GEO_COMPONENT_TYPE_POINT_CLOUD, | ||||
| "POINTCLOUD", | "POINTCLOUD", | ||||
| ICON_POINTCLOUD_DATA, | ICON_POINTCLOUD_DATA, | ||||
| "Point Cloud", | "Point Cloud", | ||||
| "Point cloud component containing only point data"}, | "Point cloud component containing only point data"}, | ||||
| {GEO_COMPONENT_TYPE_INSTANCES, | {GEO_COMPONENT_TYPE_INSTANCES, | ||||
| "INSTANCES", | "INSTANCES", | ||||
| ICON_EMPTY_AXIS, | ICON_EMPTY_AXIS, | ||||
| ▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines | |||||