mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix error spam caused by internal_vertex_count property
This commit is contained in:
parent
efb40c1524
commit
3eb85431f1
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ bool Polygon2D::_edit_use_rect() const {
|
|||
bool Polygon2D::_edit_is_selected_on_click(const Point2 &p_point, double p_tolerance) const {
|
||||
Vector<Vector2> polygon2d = Variant(polygon);
|
||||
if (internal_vertices > 0) {
|
||||
polygon2d.resize(polygon2d.size() - internal_vertices);
|
||||
polygon2d.resize(MAX(polygon2d.size() - internal_vertices, 0));
|
||||
}
|
||||
return Geometry2D::is_point_in_polygon(p_point - get_offset(), polygon2d);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue