summaryrefslogtreecommitdiffstats
path: root/editor/editor_resource_preview.cpp
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2021-03-28 12:32:17 +0100
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2021-03-28 13:00:46 +0100
commitfd30c36985c6a5de09daf897800c36acb8c2c49a (patch)
tree31119051e0aa93211ea6cb81e6192a2e4afd41ea /editor/editor_resource_preview.cpp
parentf8442b97bf7f2b445b0aca9c02629277c11064d6 (diff)
downloadredot-engine-fd30c36985c6a5de09daf897800c36acb8c2c49a.tar.gz
Rename Texture.get_data() to get_image()
Diffstat (limited to 'editor/editor_resource_preview.cpp')
-rw-r--r--editor/editor_resource_preview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_resource_preview.cpp b/editor/editor_resource_preview.cpp
index 77288be614..138830cdc6 100644
--- a/editor/editor_resource_preview.cpp
+++ b/editor/editor_resource_preview.cpp
@@ -174,7 +174,7 @@ void EditorResourcePreview::_generate_preview(Ref<ImageTexture> &r_texture, Ref<
}
if (!r_small_texture.is_valid() && r_texture.is_valid() && preview_generators[i]->generate_small_preview_automatically()) {
- Ref<Image> small_image = r_texture->get_data();
+ Ref<Image> small_image = r_texture->get_image();
small_image = small_image->duplicate();
small_image->resize(small_thumbnail_size, small_thumbnail_size, Image::INTERPOLATE_CUBIC);
r_small_texture.instance();