|
Blender
V2.93
|
#include "BKE_attribute.h"#include "BKE_context.h"#include "RNA_access.h"#include "RNA_define.h"#include "RNA_enum_types.h"#include "DEG_depsgraph.h"#include "WM_api.h"#include "WM_types.h"#include "ED_object.h"#include "geometry_intern.h"Go to the source code of this file.
Functions | |
| static bool | geometry_attributes_poll (bContext *C) |
| static const EnumPropertyItem * | geometry_attribute_domain_itemf (bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free) |
| static int | geometry_attribute_add_exec (bContext *C, wmOperator *op) |
| void | GEOMETRY_OT_attribute_add (wmOperatorType *ot) |
| static int | geometry_attribute_remove_exec (bContext *C, wmOperator *op) |
| void | GEOMETRY_OT_attribute_remove (wmOperatorType *ot) |
|
static |
Definition at line 67 of file geometry_attributes.c.
References BKE_id_attribute_new(), BKE_id_attributes_active_set(), C, Object::data, DEG_id_tag_update(), ED_object_context(), ID_RECALC_GEOMETRY, MAX_NAME, NC_GEOM, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_string_get(), type, and WM_main_add_notifier().
Referenced by GEOMETRY_OT_attribute_add().
|
static |
Definition at line 50 of file geometry_attributes.c.
References C, Object::data, DummyRNA_NULL_items, ED_object_context(), NULL, and rna_enum_attribute_domain_itemf().
Referenced by GEOMETRY_OT_attribute_add().
|
static |
Definition at line 129 of file geometry_attributes.c.
References BKE_id_attribute_remove(), BKE_id_attributes_active_get(), C, Object::data, DEG_id_tag_update(), ED_object_context(), ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and WM_main_add_notifier().
Referenced by GEOMETRY_OT_attribute_remove().
|
static |
Definition at line 42 of file geometry_attributes.c.
References BKE_id_attributes_supported(), C, data, Object::data, ED_object_context(), ID_IS_LINKED, NULL, and return().
Referenced by GEOMETRY_OT_attribute_add(), and GEOMETRY_OT_attribute_remove().
| void GEOMETRY_OT_attribute_add | ( | wmOperatorType * | ot | ) |
Definition at line 90 of file geometry_attributes.c.
References ATTR_DOMAIN_POINT, CD_PROP_FLOAT, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, geometry_attribute_add_exec(), geometry_attribute_domain_itemf(), geometry_attributes_poll(), wmOperatorType::idname, wmOperatorType::invoke, MAX_NAME, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), RNA_def_string(), rna_enum_attribute_domain_items, rna_enum_attribute_type_items, wmOperatorType::srna, and WM_operator_props_popup_confirm().
Referenced by ED_operatortypes_geometry().
| void GEOMETRY_OT_attribute_remove | ( | wmOperatorType * | ot | ) |
Definition at line 149 of file geometry_attributes.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, geometry_attribute_remove_exec(), geometry_attributes_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_geometry().