Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-11-10 23:28:46 +0300
committerHans Goudey <h.goudey@me.com>2022-11-11 00:29:21 +0300
commit34f4646786dad75b418250cc8e4bf92441434d00 (patch)
tree9b252428794b4103aab8a60855ab8a992204c254 /source/blender/editors/include/ED_geometry.h
parent98003125908858e23e575cf1947cf1b7587716b3 (diff)
Cleanup: Clarify and deduplicate attribute convert implementation
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.
Diffstat (limited to 'source/blender/editors/include/ED_geometry.h')
-rw-r--r--source/blender/editors/include/ED_geometry.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/source/blender/editors/include/ED_geometry.h b/source/blender/editors/include/ED_geometry.h
index 4620181894a..8436df73d10 100644
--- a/source/blender/editors/include/ED_geometry.h
+++ b/source/blender/editors/include/ED_geometry.h
@@ -15,14 +15,21 @@ 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 *layer_name,
- eCustomDataType old_type,
- eAttrDomain old_domain,
- eCustomDataType new_type,
- eAttrDomain new_domain);
+ const char *name,
+ eCustomDataType dst_type,
+ eAttrDomain dst_domain,
+ ReportList *reports);
#ifdef __cplusplus
}
#endif