Tech ENABLE_ALLOW_NEGATIVE_Z -> Keep sinking instances as sinking after applying rotate gizmo

This commit is contained in:
enricoturri1966 2021-04-23 08:29:29 +02:00
parent 8f385aac44
commit d4695827ce
3 changed files with 35 additions and 23 deletions

View file

@ -524,7 +524,7 @@ bool GLVolume::is_sinking() const
if (is_modifier)
return false;
const BoundingBoxf3& box = transformed_convex_hull_bounding_box();
return box.min(2) < 0.0 && box.max(2) >= 0.0;
return box.min(2) < -EPSILON && box.max(2) >= -EPSILON;
}
bool GLVolume::is_below_printbed() const