mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Apply viewport oversampling to Polygon2D.
This commit is contained in:
parent
06faefc9f4
commit
4f4d4ca26c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue