mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-27 12:52:07 +00:00
FIX: modify the filament id for painting color
jira: none Change-Id: I25dcab95f1499783afd892c790f1e18232ea4f72 (cherry picked from commit f7a0e66e0dd16531d2318843ec86630232880867)
This commit is contained in:
@@ -2486,7 +2486,7 @@ void ModelVolume::update_extruder_count_when_delete_filament(size_t extruder_cou
|
||||
std::vector<int> used_extruders = get_extruders();
|
||||
for (int extruder_id : used_extruders) {
|
||||
if (extruder_id == filament_id) {
|
||||
mmu_segmentation_facets.set_enforcer_block_type_limit(*this, (EnforcerBlockerType)(extruder_count + 1), (EnforcerBlockerType)(filament_id + 1), (EnforcerBlockerType)(replace_filament_id + 1));
|
||||
mmu_segmentation_facets.set_enforcer_block_type_limit(*this, (EnforcerBlockerType)(extruder_count), (EnforcerBlockerType)(filament_id), (EnforcerBlockerType)(replace_filament_id));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user