From 2fb221e79a58dbe2aaa08b1df2c3372ba8177407 Mon Sep 17 00:00:00 2001 From: Eoin O'Neill Date: Sun, 30 Aug 2020 21:20:13 -0700 Subject: [PATCH] Collision Shape 2D 'Disabled' Visualization Correction Having white or strongly desaturated debug collision shape color setting would make it harder to visualize enabled / disabled state. This change makes it easier to visualize enabled / disabled state by reducing the alpha color by half when disabled. (cherry picked from commit 0c4594f6c9eb8f50b19bca80b1ca98157543b102) --- scene/2d/collision_shape_2d.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/2d/collision_shape_2d.cpp b/scene/2d/collision_shape_2d.cpp index dfe69943582..cdf37bd1545 100644 --- a/scene/2d/collision_shape_2d.cpp +++ b/scene/2d/collision_shape_2d.cpp @@ -117,6 +117,7 @@ void CollisionShape2D::_notification(int p_what) { draw_col.r = g; draw_col.g = g; draw_col.b = g; + draw_col.a *= 0.5; } shape->draw(get_canvas_item(), draw_col);