-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Fix conversion of hex color strings in project converter #74026
Conversation
This appears to fix the issue, however, I am not sure if this is the best way to organize the code. Any suggestions will be appreciated. :) |
Can you also add tests? ( |
823f5e8
to
8a8fde8
Compare
3a43761
to
f15fe4a
Compare
f15fe4a
to
d94ad09
Compare
Sorry for the wait. So I checked this again and realized my suggestion was rather poor, as it would incorrectly convert your normal 6-character long hex colors. Test set
So I went ahead and updated your PR on your behalf, adding more tests to catch these cases and splitting the operation into two passes: one explicitly for 4 characters and another explicitly for 8 characters. |
Thanks! And congrats for your first merged Godot contribution 🎉 |
Cherry-picked for 4.1.3. |
fixes #73633