|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "DNA_mesh_types.h"#include "DNA_meshdata_types.h"#include "DNA_scene_types.h"#include "BLI_color.hh"#include "BKE_attribute.hh"#include "BKE_context.hh"#include "BKE_customdata.hh"#include "BKE_deform.hh"#include "BKE_geometry_set.hh"#include "BKE_lib_id.hh"#include "BKE_mesh.hh"#include "BKE_object_deform.h"#include "BKE_paint.hh"#include "BKE_report.hh"#include "BLI_string.h"#include "BLT_translation.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "DEG_depsgraph.hh"#include "WM_api.hh"#include "WM_types.hh"#include "UI_interface.hh"#include "UI_resources.hh"#include "ED_geometry.hh"#include "ED_mesh.hh"#include "ED_object.hh"#include "ED_sculpt.hh"#include "geometry_intern.hh"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::ed |
| namespace | blender::ed::geometry |
Enumerations | |
| enum class | blender::ed::geometry::ConvertAttributeMode { blender::ed::geometry::Generic = 0 , blender::ed::geometry::VertexGroup = 1 } |
| bool ED_geometry_attribute_convert | ( | Mesh * | mesh, |
| const char * | name, | ||
| eCustomDataType | dst_type, | ||
| blender::bke::AttrDomain | dst_domain, | ||
| ReportList * | reports ) |
Convert an attribute with the given name to a new type and domain. The attribute must already exist.
Definition at line 922 of file geometry_attributes.cc.
References blender::CPPType::alignment(), BKE_report(), BLI_assert, CD_PROP_STRING, ELEM, blender::GVArrayCommon::materialize_to_uninitialized(), MEM_freeN(), MEM_mallocN_aligned(), RPT_ERROR, blender::CPPType::size(), blender::GVArrayCommon::size(), and blender::GVArrayCommon::type().
Referenced by blender::ed::geometry::geometry_attribute_convert_exec(), blender::ed::geometry::geometry_color_attribute_convert_exec(), and blender::ed::sculpt_paint::undo::set_active_layer().