1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

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 0c4594f6c9)
This commit is contained in:
Eoin O'Neill
2020-08-30 21:20:13 -07:00
committed by Rémi Verschelde
parent 96ff829816
commit 2fb221e79a

View File

@@ -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);