diff options
author | Jacques Lucke <jacques@blender.org> | 2022-01-21 14:47:35 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-01-21 14:47:35 +0300 |
commit | f6888b530ac81abbe61755971449ad6b42b93c82 (patch) | |
tree | d5234ec992f73046f031e71d62cc47efe5cbcc64 /source/blender/editors/geometry/geometry_intern.hh | |
parent | 36c40760a5a38db733e20c948b2170ab78bb2607 (diff) |
Attributes: add operator to convert generic attributes to other types
Editing of generic attributes on the original objects in edit modes is
still very limited. However, when applying a geometry nodes modifier
that generates new attributes. These attributes will show up in the
Attributes panel.
Currently, our exporters are not capable of exporting generic attributes.
Therefore, for the time being, a work around is to apply geometry nodes
and then convert a generic attribute to a task specific attribute like a
uv map, vertex group or vertex color layer. Once more parts of Blender
support generic attributes, this will become less important.
Currently, only meshes are supported by the operator. However, it would
be relatively easy to extend it to other geometry types.
Differential Revision: https://developer.blender.org/D13838
Diffstat (limited to 'source/blender/editors/geometry/geometry_intern.hh')
-rw-r--r-- | source/blender/editors/geometry/geometry_intern.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/geometry/geometry_intern.hh b/source/blender/editors/geometry/geometry_intern.hh index 14992476edd..30a2a1d6eb1 100644 --- a/source/blender/editors/geometry/geometry_intern.hh +++ b/source/blender/editors/geometry/geometry_intern.hh @@ -25,6 +25,11 @@ struct wmOperatorType; +namespace blender::ed::geometry { + /* *** geometry_attributes.cc *** */ void GEOMETRY_OT_attribute_add(struct wmOperatorType *ot); void GEOMETRY_OT_attribute_remove(struct wmOperatorType *ot); +void GEOMETRY_OT_attribute_convert(struct wmOperatorType *ot); + +} // namespace blender::ed::geometry |