We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e7f773 + 7e2f6c3 commit 08c200eCopy full SHA for 08c200e
editor/script/script_text_editor.cpp
@@ -490,7 +490,11 @@ Array ScriptTextEditor::_inline_object_parse(const String &p_text) {
490
params.push_back(s_param.to_float());
491
}
492
if (valid_floats && params.size() == 3) {
493
- params.push_back(1.0);
+ if (fn_name == ".from_rgba8") {
494
+ params.push_back(255);
495
+ } else {
496
+ params.push_back(1.0);
497
+ }
498
499
if (valid_floats && params.size() == 4) {
500
has_added_color = true;
0 commit comments