Path2D: Check points count before rendering.

This commit is contained in:
Anilforextra 2022-01-09 15:17:41 +05:45
parent 5a61822d7c
commit b770a4d0ac

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