From 755c70b871c659df2d7c3a003593f38775dd7b5d Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Sun, 14 Mar 2021 07:21:32 +0000 Subject: Rename Array.invert() to Array.reverse() Does the same internally for List and Vector<>, which includes all PackedArray types. --- modules/csg/csg_shape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/csg/csg_shape.cpp') diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index b97ee6ce4c..77be493be9 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -1679,7 +1679,7 @@ CSGBrush *CSGPolygon3D::_build_brush() { Vector final_polygon = polygon; if (Triangulate::get_area(final_polygon) > 0) { - final_polygon.invert(); + final_polygon.reverse(); } Vector triangles = Geometry2D::triangulate_polygon(final_polygon); -- cgit v1.2.3