Merge pull request #24691 from BlackCatter/line2d-fix

Fix line 2D intersection behavior
This commit is contained in:
Rémi Verschelde 2019-01-02 19:39:31 +01:00 committed by GitHub
commit 03b8168c2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,6 +279,10 @@ void LineBuilder::build() {
}
} else {
// No intersection: fallback
if (current_joint_mode == Line2D::LINE_JOINT_SHARP) {
// There is no fallback implementation for LINE_JOINT_SHARP so switch to the LINE_JOINT_BEVEL
current_joint_mode = Line2D::LINE_JOINT_BEVEL;
}
pos_up1 = corner_pos_up;
pos_down1 = corner_pos_down;
}