You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #111527 from DenisCiammaricone/fix-inline-object-parse
Fix editor inline color display of color from `Color.from_rgba8`
This commit is contained in:
@@ -490,8 +490,12 @@ Array ScriptTextEditor::_inline_object_parse(const String &p_text) {
|
||||
params.push_back(s_param.to_float());
|
||||
}
|
||||
if (valid_floats && params.size() == 3) {
|
||||
if (fn_name == ".from_rgba8") {
|
||||
params.push_back(255);
|
||||
} else {
|
||||
params.push_back(1.0);
|
||||
}
|
||||
}
|
||||
if (valid_floats && params.size() == 4) {
|
||||
has_added_color = true;
|
||||
if (fn_name == ".from_ok_hsl") {
|
||||
|
||||
Reference in New Issue
Block a user