Path2D: Check points count before rendering.

(cherry picked from commit b770a4d0ac)
This commit is contained in:
Anilforextra 2022-01-09 15:17:41 +05:45 committed by Rémi Verschelde
parent 8edc8a95b1
commit 3fad43acad
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

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