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

View file

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