summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-08-21 20:29:56 +0200
committerGitHub <noreply@github.com>2018-08-21 20:29:56 +0200
commit28e9aedbddb41f240ff7b416c8359673d3505a79 (patch)
tree8de874b726bdb1be6ceef3fad3c6a5adf08aafe2 /scene/2d
parent44d75e3b6d2565e13e4f49d21d5e00dfcc99afd9 (diff)
parent2969dffbe3dc8cc5fc45f284a935f177f79efab4 (diff)
Merge pull request #21267 from akien-mga/color-grayscale
Deprecate incorrect Color::gray()
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/collision_shape_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/collision_shape_2d.cpp b/scene/2d/collision_shape_2d.cpp
index 83ef4df8f4..ff5f7062c4 100644
--- a/scene/2d/collision_shape_2d.cpp
+++ b/scene/2d/collision_shape_2d.cpp
@@ -119,7 +119,7 @@ void CollisionShape2D::_notification(int p_what) {
Color draw_col = get_tree()->get_debug_collisions_color();
if (disabled) {
- float g = draw_col.gray();
+ float g = draw_col.get_v();
draw_col.r = g;
draw_col.g = g;
draw_col.b = g;