mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +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:
commit
08c200e82f
1 changed files with 5 additions and 1 deletions
|
@ -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") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue