Skip to content

Commit 08c200e

Browse files
committed
Merge pull request #111527 from DenisCiammaricone/fix-inline-object-parse
Fix editor inline color display of color from `Color.from_rgba8`
2 parents 5e7f773 + 7e2f6c3 commit 08c200e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

editor/script/script_text_editor.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,11 @@ Array ScriptTextEditor::_inline_object_parse(const String &p_text) {
490490
params.push_back(s_param.to_float());
491491
}
492492
if (valid_floats && params.size() == 3) {
493-
params.push_back(1.0);
493+
if (fn_name == ".from_rgba8") {
494+
params.push_back(255);
495+
} else {
496+
params.push_back(1.0);
497+
}
494498
}
495499
if (valid_floats && params.size() == 4) {
496500
has_added_color = true;

0 commit comments

Comments
 (0)