summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorjitspoe <jitspoeAyahoooDcom>2019-10-16 23:44:46 -0400
committerjitspoe <jitspoe@yahoo.com>2019-12-12 00:13:44 -0500
commit2c894f342624348ee9e6055ef514f655a44023c3 (patch)
tree5976992802ad90e010676340d094e0fefa9f33d3 /scene
parent9abc0ad8a5cf400d848fd25a33bd562db08d1046 (diff)
Fix for collision polygon not working at all on exported builds.
(cherry picked from commit a169e1406de77c3abfe670217f18bcf2c1468bae)
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/collision_polygon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/collision_polygon.cpp b/scene/3d/collision_polygon.cpp
index 37aa95fb43..a59cce5c66 100644
--- a/scene/3d/collision_polygon.cpp
+++ b/scene/3d/collision_polygon.cpp
@@ -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;