Commit: 655db600b60a1f7516a5467f4fc13bb91dcb1e4f
Author: Martijn Versteegh
Date: Tue Dec 6 11:31:32 2022 +0100
Branches: refactor-mesh-uv-map-generic
https://developer.blender.org/rB655db600b60a1f7516a5467f4fc13bb91dcb1e4f
Skip layers marked as 'NOCOPY' when converting BMesh CData to Mesh.
===================================================================
M source/blender/blenkernel/intern/customdata.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/customdata.cc
b/source/blender/blenkernel/intern/customdata.cc
index c6d7dea6ad2..938789eb9ac 100644
--- a/source/blender/blenkernel/intern/customdata.cc
+++ b/source/blender/blenkernel/intern/customdata.cc
@@ -4171,6 +4171,10 @@ void CustomData_from_bmesh_block(const CustomData
*source,
int dest_i = 0;
for (int src_i = 0; src_i < source->totlayer; src_i++) {
+ if (source->layers[src_i].flag & CD_FLAG_NOCOPY) {
+ continue;
+ }
+
/* find the first dest layer with type >= the source type
* (this should work because layers are ordered by type)
*/
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs