summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEoin O'Neill <eoinoneill1991@gmail.com>2020-08-30 21:20:13 -0700
committerEoin O'Neill <eoinoneill1991@gmail.com>2020-12-31 23:22:24 -0800
commit0c4594f6c9eb8f50b19bca80b1ca98157543b102 (patch)
tree8c790f71363c800fc3e4cb7bc92290ca331782d1
parent36c943260ed40c6e31a6ecff7f6e1674714b4fcb (diff)
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.
-rw-r--r--scene/2d/collision_shape_2d.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/collision_shape_2d.cpp b/scene/2d/collision_shape_2d.cpp
index a5cd624235..ac8e00c57a 100644
--- a/scene/2d/collision_shape_2d.cpp
+++ b/scene/2d/collision_shape_2d.cpp
@@ -110,6 +110,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);