Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed properties #1051

Merged
merged 4 commits into from
Nov 17, 2024
Merged

fixed properties #1051

merged 4 commits into from
Nov 17, 2024

Conversation

elalish
Copy link
Owner

@elalish elalish commented Nov 17, 2024

Fixes #1050

I moved a bunch of debug functions around because I was having trouble printing my results.

@elalish elalish self-assigned this Nov 17, 2024
@@ -89,7 +89,7 @@ struct UpdateProperties {
auto old = std::atomic_exchange(
reinterpret_cast<std::atomic<uint8_t>*>(&counters[propVert]),
static_cast<uint8_t>(1));
if (old == 1) return;
if (old == 1) continue;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the actual one-line fix for the bug.

ASSERT_FALSE(manifold.IsEmpty());
const MeshGL meshGL = manifold.GetMeshGL();
if (noMerge) EXPECT_EQ(manifold.NumVert(), meshGL.NumVert());
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this test to catch the regression.

@elalish elalish merged commit 1810105 into master Nov 17, 2024
18 checks passed
@elalish elalish deleted the propertyFix branch November 17, 2024 05:26
@elalish elalish mentioned this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Properties regression
1 participant