Skip to content

Commit

Permalink
Merge pull request #78007 from kdiduk/fix_add_triangle_fan
Browse files Browse the repository at this point in the history
Fix parameters passing to `add_triangle_fan` method.
  • Loading branch information
akien-mga committed Jun 8, 2023
2 parents 3566c56 + 566f78b commit 1e39eb0
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 1e39eb0

Please sign in to comment.