aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpoke10242018-02-28 19:47:07 +0100
committerpoke10242018-03-01 07:30:30 +0100
commita36f6e5386d5cf41256bbd53034998f7453a2376 (patch)
tree799f69e40d5230ddaff4753a049a211aa1512b1f
parent4c2b5491b57f0a33c2bc99c2966d27c9d75b338e (diff)
downloadgodot-a36f6e5386d5cf41256bbd53034998f7453a2376.tar.gz
godot-a36f6e5386d5cf41256bbd53034998f7453a2376.tar.zst
godot-a36f6e5386d5cf41256bbd53034998f7453a2376.zip
Fix line thickness for CollisionPolygon2D.
-rw-r--r--scene/2d/collision_polygon_2d.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/2d/collision_polygon_2d.cpp b/scene/2d/collision_polygon_2d.cpp
index a840744c7..d639ab074 100644
--- a/scene/2d/collision_polygon_2d.cpp
+++ b/scene/2d/collision_polygon_2d.cpp
@@ -160,7 +160,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)