-
-
Notifications
You must be signed in to change notification settings - Fork 21k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Color.from_hsv()
is no longer available in master
due to core binding changes
#45450
Comments
hello @Calinou Can u please explain me what if we can't do anything about the immutability of Color isn't it good to make color properties (like : r,g,b) private and make some getter_functions for retrieving values of those properties. if these ideas are good i'm happy to work on it. |
@Bhu1-V Sorry, I don't understand the cause of the regression either. |
I'm trying to make a constructor of type Color(r,g,b,a, bool is_hsv |
@Calinou Is it a good idea to make a temporary fix or find what caused this regression in the first place and fix it..??🤔 |
This regression is caused by a Variant core refactoring that was done in the |
Note that's not a very easy issue to solve for a new contributor as it requires some design decision on how we want to expose such functionality going further. We can't have static methods yet, so this one is a bit tricky and probably requires a good amount of experience to find a good solution. I don't want to discourage you from working on this but it's worth noting :) |
Duplicate of #43311. |
Godot version: Git 161c4be
OS/device including version: Fedora 33, GeForce GTX 1080 (NVIDIA 460.32.03)
Issue description:
In
3.2
, running the code results in:The
Color.from_hsv()
method isn't exposed anymore inmaster
:godot/core/variant/variant_call.cpp
Lines 1149 to 1150 in 161c4be
Steps to reproduce:
Minimal reproduction project: test_color_from_hsv.zip
The text was updated successfully, but these errors were encountered: