Fix line thickness for CollisionPolygon2D.

(cherry picked from commit a36f6e5386)
This commit is contained in:
poke1024 2018-02-28 19:47:07 +01:00 committed by Hein-Pieter van Braam
parent dfb739aff0
commit f7efa9d43a
1 changed files with 2 additions and 1 deletions

View File

@ -175,7 +175,8 @@ void CollisionPolygon2D::_notification(int p_what) {
Vector2 p = polygon[i]; Vector2 p = polygon[i];
Vector2 n = polygon[(i + 1) % polygon.size()]; Vector2 n = polygon[(i + 1) % polygon.size()];
draw_line(p, n, Color(0.9, 0.2, 0.0, 0.8), 3); // draw line with width <= 1, so it does not scale with zoom and break pixel exact editing
draw_line(p, n, Color(0.9, 0.2, 0.0, 0.8), 1);
} }
#define DEBUG_DECOMPOSE #define DEBUG_DECOMPOSE
#if defined(TOOLS_ENABLED) && defined(DEBUG_DECOMPOSE) #if defined(TOOLS_ENABLED) && defined(DEBUG_DECOMPOSE)