Merge pull request #41644 from Eoin-ONeill-Yokai/collision_2d_shape_visualization_fix

CollisionShape2D 'Disabled' Visualization Correction
This commit is contained in:
Rémi Verschelde 2021-02-18 23:42:02 +01:00 committed by GitHub
commit a23d7480d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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