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-08-26 00:21:08 +0300
committerHans Goudey <h.goudey@me.com>2022-08-26 00:21:08 +0300
commit304864219c9dac6243983ac57643f360b8daa55b (patch)
tree12f7c350e097ec314c52eab4296752f399ee3381 /source/blender/editors/mesh/mesh_data.cc
parentc8f9b02acd5c6c92b34884f551070464e5c36fc5 (diff)
Progress
Diffstat (limited to 'source/blender/editors/mesh/mesh_data.cc')
-rw-r--r--source/blender/editors/mesh/mesh_data.cc21
1 files changed, 10 insertions, 11 deletions
diff --git a/source/blender/editors/mesh/mesh_data.cc b/source/blender/editors/mesh/mesh_data.cc
index d6c18bafa4f..9de77216655 100644
--- a/source/blender/editors/mesh/mesh_data.cc
+++ b/source/blender/editors/mesh/mesh_data.cc
@@ -891,9 +891,9 @@ static void mesh_add_verts(Mesh *mesh, int len)
mesh->totvert = totvert;
- const bke::MutableAttributeAccessor attributes = bke::mesh_attributes_for_write(*mesh);
- const bke::SpanAttributeWriter<bool> selection_vert =
- attributes.lookup_or_add_for_write_span<bool>(".selection_vert", ATTR_DOMAIN_POINT);
+ bke::MutableAttributeAccessor attributes = bke::mesh_attributes_for_write(*mesh);
+ bke::SpanAttributeWriter<bool> selection_vert = attributes.lookup_or_add_for_write_span<bool>(
+ ".selection_vert", ATTR_DOMAIN_POINT);
selection_vert.span.take_back(len).fill(true);
selection_vert.finish();
}
@@ -933,9 +933,9 @@ static void mesh_add_edges(Mesh *mesh, int len)
mesh->totedge = totedge;
- const bke::MutableAttributeAccessor attributes = bke::mesh_attributes_for_write(*mesh);
- const bke::SpanAttributeWriter<bool> selection_edge =
- attributes.lookup_or_add_for_write_span<bool>(".selection_edge", ATTR_DOMAIN_EDGE);
+ bke::MutableAttributeAccessor attributes = bke::mesh_attributes_for_write(*mesh);
+ bke::SpanAttributeWriter<bool> selection_edge = attributes.lookup_or_add_for_write_span<bool>(
+ ".selection_edge", ATTR_DOMAIN_EDGE);
selection_edge.span.take_back(len).fill(true);
selection_edge.finish();
}
@@ -972,8 +972,7 @@ static void mesh_add_polys(Mesh *mesh, int len)
{
using namespace blender;
CustomData pdata;
- MPoly *mpoly;
- int i, totpoly;
+ int totpoly;
if (len == 0) {
return;
@@ -997,9 +996,9 @@ static void mesh_add_polys(Mesh *mesh, int len)
mesh->totpoly = totpoly;
- const bke::MutableAttributeAccessor attributes = bke::mesh_attributes_for_write(*mesh);
- const bke::SpanAttributeWriter<bool> selection_poly =
- attributes.lookup_or_add_for_write_span<bool>(".selection_poly", ATTR_DOMAIN_FACE);
+ bke::MutableAttributeAccessor attributes = bke::mesh_attributes_for_write(*mesh);
+ bke::SpanAttributeWriter<bool> selection_poly = attributes.lookup_or_add_for_write_span<bool>(
+ ".selection_poly", ATTR_DOMAIN_FACE);
selection_poly.span.take_back(len).fill(true);
selection_poly.finish();
}