Merge pull request #56643 from AnilBK/path2D-check-point-count

Path2D: Check points count before rendering.
This commit is contained in:
Rémi Verschelde 2022-01-09 19:13:21 +01:00 committed by GitHub
commit b6b81e800a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,6 +93,10 @@ void Path2D::_notification(int p_what) {
return;
}
if (curve->get_point_count() < 2) {
return;
}
#ifdef TOOLS_ENABLED
const real_t line_width = 2 * EDSCALE;
#else