Skip to content

Commit

Permalink
Fix parameters passing to add_triangle_fan method.
Browse files Browse the repository at this point in the history
Pass `p_uvs` parameter properly (instead of passing `p_uv2s` twice).

This commit fixes godotengine#77542
  • Loading branch information
kdiduk committed Jun 8, 2023
1 parent 3a19d81 commit 566f78b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/resources/surface_tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 566f78b

Please sign in to comment.