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_ops.cc | |
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_ops.cc')
-rw-r--r-- | source/blender/editors/geometry/geometry_ops.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/geometry/geometry_ops.cc b/source/blender/editors/geometry/geometry_ops.cc index ba8afe0e62f..8933b2a7f00 100644 --- a/source/blender/editors/geometry/geometry_ops.cc +++ b/source/blender/editors/geometry/geometry_ops.cc @@ -31,6 +31,9 @@ void ED_operatortypes_geometry(void) { + using namespace blender::ed::geometry; + WM_operatortype_append(GEOMETRY_OT_attribute_add); WM_operatortype_append(GEOMETRY_OT_attribute_remove); + WM_operatortype_append(GEOMETRY_OT_attribute_convert); } |