Fix for collision polygon not working at all on exported builds.
(cherry picked from commit a169e1406de77c3abfe670217f18bcf2c1468bae)
This commit is contained in:
parent
9abc0ad8a5
commit
2c894f3426
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue