Merge pull request #34293 from jitspoe/collision-polygon-export-fix

Fix for collision polygon not working at all on exported builds.
This commit is contained in:
Rémi Verschelde 2019-12-13 23:28:22 +01:00 committed by GitHub
commit f18cb89681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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;