Fix for collision polygon not working at all on exported builds.

(cherry picked from commit a169e1406de77c3abfe670217f18bcf2c1468bae)
This commit is contained in:
jitspoe 2019-10-16 23:44:46 -04:00 committed by jitspoe
parent 9abc0ad8a5
commit 2c894f3426

View file

@ -44,7 +44,7 @@ void CollisionPolygon::_build_polygon() {
if (polygon.size() == 0)
return;
Vector<Vector<Vector2> > decomp = Geometry::decompose_polygon(polygon);
Vector<Vector<Vector2> > decomp = Geometry::decompose_polygon_in_convex(polygon);
if (decomp.size() == 0)
return;