[Bf-blender-cvs] [9ea79d9f6f7] refactor-mesh-hide-generic: Cleanup: Rename function
Hans Goudey
noreply at git.blender.org
Wed Jul 20 04:55:30 CEST 2022
Commit: 9ea79d9f6f791b710326d14ea654633939096c36
Author: Hans Goudey
Date: Tue Jul 19 21:55:23 2022 -0500
Branches: refactor-mesh-hide-generic
https://developer.blender.org/rB9ea79d9f6f791b710326d14ea654633939096c36
Cleanup: Rename function
===================================================================
M source/blender/blenkernel/intern/customdata.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/customdata.cc b/source/blender/blenkernel/intern/customdata.cc
index 777a086282e..8f1a8669f8e 100644
--- a/source/blender/blenkernel/intern/customdata.cc
+++ b/source/blender/blenkernel/intern/customdata.cc
@@ -2327,7 +2327,7 @@ bool CustomData_merge(const CustomData *source,
return changed;
}
-static bool layer_stored_in_bmesh(const StringRef name)
+static bool attribute_stored_in_bmesh_flag(const StringRef name)
{
return ELEM(name, ".hide_vert", ".hide_edge", ".hide_face");
}
@@ -2336,7 +2336,7 @@ static CustomData shallow_copy_remove_non_bmesh_attributes(const CustomData &src
{
Vector<CustomDataLayer> dst_layers;
for (const CustomDataLayer &layer : Span<CustomDataLayer>{src.layers, src.totlayer}) {
- if (layer_stored_in_bmesh(layer.name)) {
+ if (attribute_stored_in_bmesh_flag(layer.name)) {
dst_layers.append(layer);
}
}
More information about the Bf-blender-cvs
mailing list