mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Removal of Image from Variant, converted to a Resource.
This commit is contained in:
parent
d801ff2b3d
commit
98a3296702
110 changed files with 690 additions and 3203 deletions
|
@ -43,11 +43,12 @@ void EditorRunNative::_notification(int p_what) {
|
|||
continue;
|
||||
Ref<ImageTexture> icon = eep->get_logo();
|
||||
if (!icon.is_null()) {
|
||||
Image im = icon->get_data();
|
||||
im.clear_mipmaps();
|
||||
if (!im.empty()) {
|
||||
Ref<Image> im = icon->get_data();
|
||||
im = im->duplicate();
|
||||
im->clear_mipmaps();
|
||||
if (!im->empty()) {
|
||||
|
||||
im.resize(16, 16);
|
||||
im->resize(16, 16);
|
||||
Ref<ImageTexture> small_icon;
|
||||
small_icon.instance();
|
||||
small_icon->create_from_image(im, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue