aboutsummaryrefslogtreecommitdiff
path: root/editor/project_manager.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-05-17 07:36:47 -0300
committerJuan Linietsky2017-05-17 07:37:45 -0300
commit98a329670227c726a5d7a196e5cba8dbdd54301b (patch)
tree7346f7a3e38eb35b784ac1a68a227d07cc8881b4 /editor/project_manager.cpp
parentd801ff2b3db2de105c1b36a74ce116e360143d4e (diff)
downloadgodot-98a329670227c726a5d7a196e5cba8dbdd54301b.tar.gz
godot-98a329670227c726a5d7a196e5cba8dbdd54301b.tar.zst
godot-98a329670227c726a5d7a196e5cba8dbdd54301b.zip
Removal of Image from Variant, converted to a Resource.
Diffstat (limited to 'editor/project_manager.cpp')
-rw-r--r--editor/project_manager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp
index 289655e9d..2d3b3a220 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -806,11 +806,12 @@ void ProjectManager::_load_recent_projects() {
if (cf->has_section_key("application", "icon")) {
String appicon = cf->get_value("application", "icon");
if (appicon != "") {
- Image img;
- Error err = img.load(appicon.replace_first("res://", path + "/"));
+ Ref<Image> img;
+ img.instance();
+ Error err = img->load(appicon.replace_first("res://", path + "/"));
if (err == OK) {
- img.resize(64, 64);
+ img->resize(64, 64);
Ref<ImageTexture> it = memnew(ImageTexture);
it->create_from_image(img);
icon = it;