diff options
| author | poke1024 | 2018-02-28 19:47:07 +0100 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-03-28 21:23:42 +0200 |
| commit | f7efa9d43a05598fd7f15c4381a79c4b309904a0 (patch) | |
| tree | bb429e98dffe54df70f697911647874136c3a8f1 /scene/2d/collision_polygon_2d.cpp | |
| parent | dfb739aff0d46c40c0be2e9c7bbb7d0e4f5c9052 (diff) | |
| download | godot-f7efa9d43a05598fd7f15c4381a79c4b309904a0.tar.gz godot-f7efa9d43a05598fd7f15c4381a79c4b309904a0.tar.zst godot-f7efa9d43a05598fd7f15c4381a79c4b309904a0.zip | |
Fix line thickness for CollisionPolygon2D.
(cherry picked from commit a36f6e5386d5cf41256bbd53034998f7453a2376)
Diffstat (limited to '')
| -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 978fb379a..7e2026d22 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) |
