The ED level function is used for more code paths now, and it has been cleaned up. Handling of the active attribute is slightly improved too.
36 lines
808 B
C++
36 lines
808 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* Copyright 2020 Blender Foundation. All rights reserved. */
|
|
|
|
/** \file
|
|
* \ingroup editors
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "BKE_attribute.h"
|
|
#include "DNA_customdata_types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct Mesh;
|
|
struct ReportList;
|
|
|
|
void ED_operatortypes_geometry(void);
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
bool ED_geometry_attribute_convert(struct Mesh *mesh,
|
|
const char *name,
|
|
eCustomDataType dst_type,
|
|
eAttrDomain dst_domain,
|
|
ReportList *reports);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|