It seems everyone misses the polygon decomposer output, fixes #3069

This commit is contained in:
Juan Linietsky 2016-01-10 23:09:05 -03:00
parent 6eb742d49f
commit d7015613b1

View file

@ -197,7 +197,7 @@ void CollisionPolygon2D::_notification(int p_what) {
Vector2 n = polygon[(i+1)%polygon.size()];
draw_line(p,n,Color(0.9,0.2,0.0,0.8),3);
}
//#define DEBUG_DECOMPOSE
#define DEBUG_DECOMPOSE
#if defined(TOOLS_ENABLED) && defined (DEBUG_DECOMPOSE)
Vector< Vector<Vector2> > decomp = _decompose_in_convex();