[Bf-blender-cvs] [e9d33192de0] refactor-mesh-selection-generic: Fix most tests
Hans Goudey
noreply at git.blender.org
Thu Sep 8 06:11:47 CEST 2022
Commit: e9d33192de08f39c189f51761e44b752f4307a5a
Author: Hans Goudey
Date: Wed Sep 7 23:11:40 2022 -0500
Branches: refactor-mesh-selection-generic
https://developer.blender.org/rBe9d33192de08f39c189f51761e44b752f4307a5a
Fix most tests
===================================================================
M source/blender/blenkernel/intern/mesh.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/mesh.cc b/source/blender/blenkernel/intern/mesh.cc
index 6644a149c89..2cf01d38bb4 100644
--- a/source/blender/blenkernel/intern/mesh.cc
+++ b/source/blender/blenkernel/intern/mesh.cc
@@ -68,6 +68,7 @@ using blender::BitVector;
using blender::float3;
using blender::MutableSpan;
using blender::Span;
+using blender::StringRef;
using blender::VArray;
using blender::Vector;
@@ -699,7 +700,11 @@ static int customdata_compare(
case CD_PROP_BOOL: {
const bool *l1_data = (bool *)l1->data;
const bool *l2_data = (bool *)l2->data;
-
+ /* TODO(@HooglyBoogly): Remove this after test files have been updated for selection
+ * attribute changes. */
+ if (StringRef(l1->name).startswith(".selection")) {
+ continue;
+ }
for (int i = 0; i < total_length; i++) {
if (l1_data[i] != l2_data[i]) {
return MESHCMP_ATTRIBUTE_VALUE_MISMATCH;
More information about the Bf-blender-cvs
mailing list