Fix parameters passing to add_triangle_fan method.

Pass `p_uvs` parameter properly (instead of passing `p_uv2s` twice).

This commit fixes #77542
This commit is contained in:
Kirill Diduk 2023-06-08 17:45:26 +02:00
parent 3a19d81691
commit 566f78bc1e

View File

@ -375,7 +375,7 @@ void SurfaceTool::set_smooth_group(uint32_t p_group) {
}
void SurfaceTool::_add_triangle_fan(const Vector<Vector3> &p_vertices, const Vector<Vector2> &p_uvs, const Vector<Color> &p_colors, const Vector<Vector2> &p_uv2s, const Vector<Vector3> &p_normals, const TypedArray<Plane> &p_tangents) {
add_triangle_fan(p_vertices, p_uv2s, p_colors, p_uv2s, p_normals, Variant(p_tangents));
add_triangle_fan(p_vertices, p_uvs, p_colors, p_uv2s, p_normals, Variant(p_tangents));
}
void SurfaceTool::add_triangle_fan(const Vector<Vector3> &p_vertices, const Vector<Vector2> &p_uvs, const Vector<Color> &p_colors, const Vector<Vector2> &p_uv2s, const Vector<Vector3> &p_normals, const Vector<Plane> &p_tangents) {