mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 19:10:38 +08:00
Bugfix: error in porting of SupportMaterial
src/libslic3r/SupportMaterial.cpp:770:17: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] if (!z > top_el.first) // next unless $z > $top_z; ^ ~ src/libslic3r/SupportMaterial.cpp:770:17: note: add parentheses after the '!' to evaluate the comparison first if (!z > top_el.first) // next unless $z > $top_z; ^ ( ) src/libslic3r/SupportMaterial.cpp:770:17: note: add parentheses around left hand side expression to silence this warning if (!z > top_el.first) // next unless $z > $top_z; ^ ( ) 1 warning generated.
This commit is contained in:
parent
94420acc2b
commit
3776b7ed80
@ -767,7 +767,7 @@ SupportMaterial::generate_bottom_interface_layers(const vector<coordf_t> &suppor
|
||||
// surface.
|
||||
for (int layer_id = 0; layer_id < support_z.size(); layer_id++) {
|
||||
auto z = support_z[layer_id];
|
||||
if (!z > top_el.first) // next unless $z > $top_z;
|
||||
if (z <= top_el.first) // next unless $z > $top_z;
|
||||
continue;
|
||||
|
||||
if (base.count(layer_id) > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user