Merge pull request #90966 from Calinou/debug-draw-use-runtime-colors

Use same colors for editor and running project for collision/path debug
This commit is contained in:
Rémi Verschelde
2024-05-07 16:49:31 +02:00
12 changed files with 10 additions and 14 deletions

View File

@ -144,7 +144,7 @@ void CollisionPolygon2D::_notification(int p_what) {
}
#endif
const Color stroke_color = Color(0.9, 0.2, 0.0);
const Color stroke_color = get_tree()->get_debug_collisions_color();
draw_polyline(polygon, stroke_color);
// Draw the last segment.
draw_line(polygon[polygon.size() - 1], polygon[0], stroke_color);