Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/geometry/geometry_attributes.cc
| Show First 20 Lines • Show All 192 Lines • ▼ Show 20 Lines | |||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| /* properties */ | /* properties */ | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| prop = RNA_def_string(ot->srna, "name", "Color", MAX_NAME, "Name", "Name of color attribute"); | prop = RNA_def_string(ot->srna, "name", "Color", MAX_NAME, "Name", "Name of color attribute"); | ||||
| RNA_def_property_flag(prop, PROP_SKIP_SAVE); | RNA_def_property_flag(prop, PROP_SKIP_SAVE); | ||||
| static EnumPropertyItem domains[3] = {{ATTR_DOMAIN_POINT, "POINT", 0, "Point", ""}, | static EnumPropertyItem domains[3] = {{ATTR_DOMAIN_POINT, "POINT", 0, "Vertex", ""}, | ||||
| {ATTR_DOMAIN_CORNER, "CORNER", 0, "Face Corner", ""}, | {ATTR_DOMAIN_CORNER, "CORNER", 0, "Face Corner", ""}, | ||||
| {0, nullptr, 0, nullptr, nullptr}}; | {0, nullptr, 0, nullptr, nullptr}}; | ||||
| static EnumPropertyItem types[3] = {{CD_PROP_COLOR, "COLOR", 0, "Color", ""}, | static EnumPropertyItem types[3] = {{CD_PROP_COLOR, "COLOR", 0, "Color", ""}, | ||||
| {CD_MLOOPCOL, "BYTE_COLOR", 0, "Byte Color", ""}, | {CD_MLOOPCOL, "BYTE_COLOR", 0, "Byte Color", ""}, | ||||
| {0, nullptr, 0, nullptr, nullptr}}; | {0, nullptr, 0, nullptr, nullptr}}; | ||||
| prop = RNA_def_enum(ot->srna, | prop = RNA_def_enum(ot->srna, | ||||
| ▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines | |||||