2022-02-11 09:07:11 +11:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
* Copyright 2020 Blender Foundation. All rights reserved. */
|
2020-08-19 18:12:52 +02:00
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
|
* \ingroup editors
|
|
|
|
|
*/
|
|
|
|
|
|
2021-01-04 13:10:22 +11:00
|
|
|
#pragma once
|
2020-08-19 18:12:52 +02:00
|
|
|
|
2022-05-31 15:46:09 -07:00
|
|
|
#include "BKE_attribute.h"
|
|
|
|
|
#include "DNA_customdata_types.h"
|
|
|
|
|
|
2020-08-19 18:12:52 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-05-31 15:46:09 -07:00
|
|
|
struct Mesh;
|
2022-11-10 14:28:46 -06:00
|
|
|
struct ReportList;
|
2020-08-19 18:12:52 +02:00
|
|
|
|
2022-05-31 15:46:09 -07:00
|
|
|
void ED_operatortypes_geometry(void);
|
2022-11-10 14:28:46 -06:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Convert an attribute with the given name to a new type and domain.
|
|
|
|
|
* The attribute must already exist.
|
|
|
|
|
*
|
|
|
|
|
* \note Does not support meshes in edit mode.
|
|
|
|
|
*/
|
2022-05-31 15:46:09 -07:00
|
|
|
bool ED_geometry_attribute_convert(struct Mesh *mesh,
|
2022-11-10 14:28:46 -06:00
|
|
|
const char *name,
|
|
|
|
|
eCustomDataType dst_type,
|
|
|
|
|
eAttrDomain dst_domain,
|
|
|
|
|
ReportList *reports);
|
2020-08-19 18:12:52 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|