diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-03-28 12:32:17 +0100 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-03-28 13:00:46 +0100 |
commit | fd30c36985c6a5de09daf897800c36acb8c2c49a (patch) | |
tree | 31119051e0aa93211ea6cb81e6192a2e4afd41ea /scene/gui | |
parent | f8442b97bf7f2b445b0aca9c02629277c11064d6 (diff) |
Rename Texture.get_data() to get_image()
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/color_picker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index 5822119b46..a919ae8dd0 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -682,7 +682,7 @@ void ColorPicker::_screen_input(const Ref<InputEvent> &p_event) { return; } - Ref<Image> img = r->get_texture()->get_data(); + Ref<Image> img = r->get_texture()->get_image(); if (img.is_valid() && !img->is_empty()) { Vector2 ofs = mev->get_global_position() - r->get_visible_rect().get_position(); Color c = img->get_pixel(ofs.x, r->get_visible_rect().size.height - ofs.y); |