Merge pull request #112352 from bruvzg/poly2d_os

Apply viewport oversampling to Polygon2D.
This commit is contained in:
Thaddeus Crews 2025-11-04 16:32:52 -06:00
commit 410ed12959
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -398,7 +398,7 @@ void Polygon2D::_notification(int p_what) {
}
RS::get_singleton()->mesh_add_surface(mesh, sd);
RS::get_singleton()->canvas_item_add_mesh(get_canvas_item(), mesh, Transform2D(), Color(1, 1, 1), texture.is_valid() ? texture->get_rid() : RID());
RS::get_singleton()->canvas_item_add_mesh(get_canvas_item(), mesh, Transform2D(), Color(1, 1, 1), texture.is_valid() ? texture->get_scaled_rid() : RID());
}
} break;