From 566f78bc1ec099563206eebfe0bf4b3d75e79117 Mon Sep 17 00:00:00 2001 From: Kirill Diduk Date: Thu, 8 Jun 2023 17:45:26 +0200 Subject: [PATCH] Fix parameters passing to `add_triangle_fan` method. Pass `p_uvs` parameter properly (instead of passing `p_uv2s` twice). This commit fixes #77542 --- scene/resources/surface_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/resources/surface_tool.cpp b/scene/resources/surface_tool.cpp index 250abee8d757..af8beb1d256f 100644 --- a/scene/resources/surface_tool.cpp +++ b/scene/resources/surface_tool.cpp @@ -375,7 +375,7 @@ void SurfaceTool::set_smooth_group(uint32_t p_group) { } void SurfaceTool::_add_triangle_fan(const Vector &p_vertices, const Vector &p_uvs, const Vector &p_colors, const Vector &p_uv2s, const Vector &p_normals, const TypedArray &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 &p_vertices, const Vector &p_uvs, const Vector &p_colors, const Vector &p_uv2s, const Vector &p_normals, const Vector &p_tangents) {