From 7bc1dc828f1636cdc9dc253d28a279f18c9c72c8 Mon Sep 17 00:00:00 2001 From: Hanif Bin Ariffin Date: Mon, 23 Sep 2019 20:01:26 -0400 Subject: Remove deprecated Color::gray MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was marked to be removed in Godot 3.1. Co-authored-by: Rémi Verschelde --- core/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/image.cpp') diff --git a/core/image.cpp b/core/image.cpp index b126437fa9..d9f84621a3 100644 --- a/core/image.cpp +++ b/core/image.cpp @@ -1715,7 +1715,7 @@ Error Image::generate_mipmap_roughness(RoughnessChannel p_roughness_channel, con roughness = c.b; } break; case ROUGHNESS_CHANNEL_L: { - roughness = c.gray(); + roughness = c.get_v(); } break; case ROUGHNESS_CHANNEL_A: { roughness = c.a; -- cgit v1.2.3