[Bf-blender-cvs] [cbbab81b9e8] refactor-mesh-sharp-edge-generic: Cleanup: Use helper variable for better formatting
Hans Goudey
noreply at git.blender.org
Thu Jan 5 04:54:49 CET 2023
Commit: cbbab81b9e878dd3bd7fef6173b8d8015d6e47ba
Author: Hans Goudey
Date: Wed Jan 4 22:47:06 2023 -0500
Branches: refactor-mesh-sharp-edge-generic
https://developer.blender.org/rBcbbab81b9e878dd3bd7fef6173b8d8015d6e47ba
Cleanup: Use helper variable for better formatting
===================================================================
M source/blender/blenkernel/intern/data_transfer.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/data_transfer.cc b/source/blender/blenkernel/intern/data_transfer.cc
index bd931d06f34..d397c677293 100644
--- a/source/blender/blenkernel/intern/data_transfer.cc
+++ b/source/blender/blenkernel/intern/data_transfer.cc
@@ -345,9 +345,9 @@ static void data_transfer_dtdata_type_postprocess(Object * /*ob_src*/,
ldata_dst, CD_CUSTOMLOOPNORMAL, CD_SET_DEFAULT, nullptr, num_loops_dst));
}
- bke::SpanAttributeWriter<bool> sharp_edges =
- me_dst->attributes_for_write().lookup_or_add_for_write_span<bool>(".sharp_edge",
- ATTR_DOMAIN_EDGE);
+ bke::MutableAttributeAccessor attributes = me_dst->attributes_for_write();
+ bke::SpanAttributeWriter<bool> sharp_edges = attributes.lookup_or_add_for_write_span<bool>(
+ ".sharp_edge", ATTR_DOMAIN_EDGE);
/* Note loop_nors_dst contains our custom normals as transferred from source... */
BKE_mesh_normals_loop_custom_set(verts_dst,
More information about the Bf-blender-cvs
mailing list