FIX: modify the filament id for painting color

jira: none
Change-Id: I25dcab95f1499783afd892c790f1e18232ea4f72
(cherry picked from commit f7a0e66e0dd16531d2318843ec86630232880867)
This commit is contained in:
zhimin.zeng
2024-10-29 14:05:53 +08:00
committed by Noisyfox
parent e8d77ddb58
commit 1765388326
4 changed files with 11 additions and 7 deletions

View File

@@ -1773,13 +1773,17 @@ void TriangleSelector::deserialize(const TriangleSplittingData &data,
auto state = is_split ? EnforcerBlockerType::NONE : EnforcerBlockerType((code & 0b1100) == 0b1100 ? next_nibble() + 3 : code >> 2);
// BBS
if (state > max_ebt || state == to_delete_filament)
if (state == to_delete_filament)
state = replace_filament;
if (to_delete_filament != EnforcerBlockerType::NONE && state != EnforcerBlockerType::NONE) {
else if (to_delete_filament != EnforcerBlockerType::NONE && state != EnforcerBlockerType::NONE) {
state = state > to_delete_filament ? EnforcerBlockerType((int)state - 1) : state;
}
if (state > max_ebt) {
assert(false);
state = EnforcerBlockerType::NONE;
}
// Only valid if is_split.
int special_side = code >> 2;