Path2D: Check points count before rendering.
This commit is contained in:
parent
5a61822d7c
commit
b770a4d0ac
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue