93 ot->
name =
"Add Geometry Attribute";
95 ot->
idname =
"GEOMETRY_OT_attribute_add";
116 "Type of data stored in attribute");
124 "Type of element that attribute is stored on");
152 ot->
name =
"Remove Geometry Attribute";
154 ot->
idname =
"GEOMETRY_OT_attribute_remove";
Generic geometry attributes built on CustomData.
bool BKE_id_attribute_remove(struct ID *id, struct CustomDataLayer *layer, struct ReportList *reports)
struct CustomDataLayer * BKE_id_attributes_active_get(struct ID *id)
bool BKE_id_attributes_supported(struct ID *id)
void BKE_id_attributes_active_set(struct ID *id, struct CustomDataLayer *layer)
struct CustomDataLayer * BKE_id_attribute_new(struct ID *id, const char *name, const int type, const AttributeDomain domain, struct ReportList *reports)
void DEG_id_tag_update(struct ID *id, int flag)
#define ID_IS_LINKED(_id)
struct Object * ED_object_context(const struct bContext *C)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
const EnumPropertyItem * rna_enum_attribute_domain_itemf(struct ID *id, bool *r_free)
return(oflags[bm->toolflag_index].f &oflag) !=0
void GEOMETRY_OT_attribute_add(wmOperatorType *ot)
static const EnumPropertyItem * geometry_attribute_domain_itemf(bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free)
static int geometry_attribute_remove_exec(bContext *C, wmOperator *op)
static int geometry_attribute_add_exec(bContext *C, wmOperator *op)
static bool geometry_attributes_poll(bContext *C)
void GEOMETRY_OT_attribute_remove(wmOperatorType *ot)
void RNA_string_get(PointerRNA *ptr, const char *name, char *value)
int RNA_enum_get(PointerRNA *ptr, const char *name)
const EnumPropertyItem rna_enum_attribute_domain_items[]
const EnumPropertyItem rna_enum_attribute_type_items[]
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_enum_funcs(PropertyRNA *prop, EnumPropertyItemFunc itemfunc)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, int default_value, const char *ui_name, const char *ui_description)
const EnumPropertyItem DummyRNA_NULL_items[]
int(* invoke)(struct bContext *, struct wmOperator *, const struct wmEvent *) ATTR_WARN_UNUSED_RESULT
bool(* poll)(struct bContext *) ATTR_WARN_UNUSED_RESULT
int(* exec)(struct bContext *, struct wmOperator *) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports
void WM_main_add_notifier(unsigned int type, void *reference)
int WM_operator_props_popup_confirm(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))