Merge pull request #56643 from AnilBK/path2D-check-point-count
Path2D: Check points count before rendering.
This commit is contained in:
commit
b6b81e800a
|
@ -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 New Issue