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:
Alessandro Ranellucci 2018-11-05 20:07:54 +01:00
parent 94420acc2b
commit 3776b7ed80

View File

@ -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) {