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:
authorJacques Lucke <jacques@blender.org>2022-01-21 14:47:35 +0300
committerJacques Lucke <jacques@blender.org>2022-01-21 14:47:35 +0300
commitf6888b530ac81abbe61755971449ad6b42b93c82 (patch)
treed5234ec992f73046f031e71d62cc47efe5cbcc64 /source/blender/editors/geometry/geometry_ops.cc
parent36c40760a5a38db733e20c948b2170ab78bb2607 (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.cc3
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);
}