summaryrefslogtreecommitdiffstats
path: root/tools/editor/plugins/script_text_editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/editor/plugins/script_text_editor.cpp')
-rw-r--r--tools/editor/plugins/script_text_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/plugins/script_text_editor.cpp b/tools/editor/plugins/script_text_editor.cpp
index 3de8812902..95e7afa04c 100644
--- a/tools/editor/plugins/script_text_editor.cpp
+++ b/tools/editor/plugins/script_text_editor.cpp
@@ -1194,7 +1194,7 @@ void ScriptTextEditor::_text_edit_gui_input(const InputEvent& ev) {
Vector<float> color = stripped.split_floats(",");
if (color.size() > 2) {
float alpha = color.size() > 3 ? color[3] : 1.0f;
- color_picker->set_color(Color(color[0], color[1], color[2], alpha));
+ color_picker->set_pick_color(Color(color[0], color[1], color[2], alpha));
}
color_panel->set_pos(get_global_transform().xform(get_local_mouse_pos()));
Size2 ms = Size2(300, color_picker->get_combined_minimum_size().height+10);