1
0
Fork 0

Merge pull request #102870 from timoschwarzer/fix/line-2d-not-rendering

Fix Line2D not rendering anything when total length is not computed
This commit is contained in:
Rémi Verschelde 2025-02-14 22:58:34 +01:00
commit 96cdbbe5bd
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ void LineBuilder::build() {
}
}
if (Math::is_zero_approx(total_distance)) {
if (point_count < 2 || (distance_required && Math::is_zero_approx(total_distance))) {
// Zero-length line, nothing to build.
return;
}