godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.1k stars 21.15k forks source link

MeshTexture Clips through #81213

Open DenisMVP opened 1 year ago

DenisMVP commented 1 year ago

Godot version

Godot_v4.1-stable_win64

System information

Godot v4.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 6GB (NVIDIA; 31.0.15.3623) - Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz (12 Threads)

Issue description

There are several issues when using MeshTexture as an icon in a TextureRect.

After assigning texture as an icon, the editor preview does not update until the visibility of the Texture rect on the texture is changed The icon is completely misaligned

image

PD: This is the first time I have participated on Github. I found a similar problem with button on the following topic and commented on It. I am not sure If opening a new bug report like this makes sense or not. Would love to know!

Here is the mentioned issue https://github.com/godotengine/godot/issues/63801

Steps to reproduce

  1. Add button
  2. Assign a MeshTexture as an icon

Minimal reproduction project

Added MRP for Godot 4.1 and 4.1.1 (https://drive.google.com/drive/folders/1xXbmx1jqUgsLpFWOBNeAJOqdnY-qhkZ7?usp=sharing)

AThousandShips commented 1 year ago

Thank you for reporting

Please provide an MRP to make this easier to test

Also can you please test this with 4.1.1

DenisMVP commented 1 year ago

I thought about adding an MRP, but It requires a MeshTexture (doesn't matter which). It is worth uploading an MRP even if it is required?. Gonna try with 4.1.1

AThousandShips commented 1 year ago

It is very helpful as there's no instructions here on how to trigger the texture updating and the change not being updated

DenisMVP commented 1 year ago

MRP uploaded for both 4.1 and 4.1.1 (4.1.1 still has the same problem) Thanks for your time!