Path2D: Check points count before rendering.
(cherry picked from commit b770a4d0ac
)
This commit is contained in:
parent
8edc8a95b1
commit
3fad43acad
1 changed files with 4 additions and 0 deletions
|
@ -94,6 +94,10 @@ void Path2D::_notification(int p_what) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (curve->get_point_count() < 2) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
const float line_width = 2 * EDSCALE;
|
const float line_width = 2 * EDSCALE;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue