Blender V5.0
BKE_attribute_legacy_convert.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
8
9#include "BKE_attribute.hh"
11
12struct CustomData;
13namespace blender::bke {
14class CurvesGeometry;
15}
16struct PointCloud;
17struct GreasePencil;
18struct Mesh;
19
20namespace blender::bke {
21
27std::optional<AttrType> custom_data_type_to_attr_type(eCustomDataType data_type);
28
32std::optional<eCustomDataType> attr_type_to_custom_data_type(AttrType attr_type);
33
40
46
49
52
55
56} // namespace blender::bke
struct GreasePencil GreasePencil
struct Mesh Mesh
struct PointCloud PointCloud
std::optional< eCustomDataType > attr_type_to_custom_data_type(AttrType attr_type)
void pointcloud_convert_customdata_to_storage(PointCloud &pointcloud)
std::optional< AttrType > custom_data_type_to_attr_type(eCustomDataType data_type)
void mesh_convert_customdata_to_storage(Mesh &mesh)
void mesh_convert_storage_to_customdata(Mesh &mesh)
void curves_convert_customdata_to_storage(CurvesGeometry &curves)
void grease_pencil_convert_customdata_to_storage(GreasePencil &grease_pencil)