Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
505fee0b
Commit
505fee0b
authored
Jan 28, 2020
by
Rémi Verschelde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Color: Fix deprecation warning mentioning 'get_v()' instead of 'v'
Fixes #35657.
parent
658e44ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
color.cpp
core/color.cpp
+1
-1
No files found.
core/color.cpp
View file @
505fee0b
...
...
@@ -511,7 +511,7 @@ Color Color::from_hsv(float p_h, float p_s, float p_v, float p_a) const {
// FIXME: Remove once Godot 3.1 has been released
float
Color
::
gray
()
const
{
WARN_DEPRECATED_MSG
(
"
Color.gray() is deprecated and will be removed in a future version. Use Color.get_v()
for a better grayscale approximation."
);
WARN_DEPRECATED_MSG
(
"
'Color.gray()' is deprecated and will be removed in a future version. Use 'Color.v'
for a better grayscale approximation."
);
return
(
r
+
g
+
b
)
/
3.0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment