mirror of
https://github.com/godotengine/godot.git
synced 2024-12-14 23:27:24 +00:00
Line2D::set_point_position Fail if passed index is out of bounds
(cherry picked from commit df49fdd189
)
This commit is contained in:
parent
e5d0889c49
commit
bd7c24371d
@ -123,6 +123,7 @@ PoolVector<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 New Issue
Block a user