diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-03-13 13:34:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-13 13:34:32 +0100 |
commit | 931f669b30ac496c3a0534894cc12706a62e3d19 (patch) | |
tree | 87e2e38338de88e83aba0e931272d50e6234c8ef | |
parent | 401a39f57e09a6e919e3291fd3e64e3ee320820f (diff) | |
parent | a36f6e5386d5cf41256bbd53034998f7453a2376 (diff) |
Merge pull request #17114 from poke1024/fix15719
Fix line thickness for CollisionPolygon2D.
-rw-r--r-- | scene/2d/collision_polygon_2d.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/2d/collision_polygon_2d.cpp b/scene/2d/collision_polygon_2d.cpp index 978fb379ac..7e2026d225 100644 --- a/scene/2d/collision_polygon_2d.cpp +++ b/scene/2d/collision_polygon_2d.cpp @@ -175,7 +175,8 @@ void CollisionPolygon2D::_notification(int p_what) { Vector2 p = polygon[i]; 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 #if defined(TOOLS_ENABLED) && defined(DEBUG_DECOMPOSE) |