[Bf-blender-cvs] [fcb6a57b8df] refactor-mesh-hide-generic: Fix BMesh conversion

Hans Goudey noreply at git.blender.org
Fri Jul 22 02:26:04 CEST 2022


Commit: fcb6a57b8dfdc9d18cb370f71f82d6f82f8d917d
Author: Hans Goudey
Date:   Thu Jul 21 19:11:50 2022 -0500
Branches: refactor-mesh-hide-generic
https://developer.blender.org/rBfcb6a57b8dfdc9d18cb370f71f82d6f82f8d917d

Fix BMesh conversion

===================================================================

M	source/blender/blenkernel/intern/customdata.cc

===================================================================

diff --git a/source/blender/blenkernel/intern/customdata.cc b/source/blender/blenkernel/intern/customdata.cc
index 8deadaa3e56..75f9a67e992 100644
--- a/source/blender/blenkernel/intern/customdata.cc
+++ b/source/blender/blenkernel/intern/customdata.cc
@@ -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 (attribute_stored_in_bmesh_flag(layer.name)) {
+    if (!attribute_stored_in_bmesh_flag(layer.name)) {
       dst_layers.append(layer);
     }
   }



More information about the Bf-blender-cvs mailing list