mirror of
https://github.com/godotengine/godot
synced 2024-09-04 22:48:26 +00:00
Line2D::set_point_position Fail if passed index is out of bounds
This commit is contained in:
parent
ff8a1fdc19
commit
df49fdd189
|
@ -116,6 +116,7 @@ Vector<Vector2> Line2D::get_points() const {
|
|||
}
|
||||
|
||||
void Line2D::set_point_position(int i, Vector2 p_pos) {
|
||||
ERR_FAIL_INDEX(i, _points.size());
|
||||
_points.set(i, p_pos);
|
||||
update();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue