-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextureRegion doesn't update to new copy of AtlasTexture #26814
Comments
Still valid in 3.2.3 rc4, i.e. the TextureRegion editor doesn't update immediately, but you need to click (redraw) it. Probably requires similar fix to #30148 |
Hello, I'm attempting a fix for this. I'm currently looking at what was done in the mentioned PR. |
Hmm I'm not able to replicate it on the master branch |
Huh, so this is actually a different issue. When you open the AtlasTexture in the inspector and make it unique, the TextureRegion editor will still keep the copy of the old texture and when you edit it the new texture is unaffected. The steps are a bit confusing, you need only one TextureRect (or any textured node) to reproduce this. That said, the fix is probably not as easy. |
I tried to fix this but failed lol The problem isn't really related to TextureRegion, any editor is potentially affected. Basically when you have a resource that is being edited and then make it unique, the editor should switch to the new resource. This doesn't happen right now, hence this bug. The change should be done somewhere here: godot/editor/editor_properties.cpp Lines 3023 to 3028 in 5636903
If get_edited_object()->get(get_edited_property() before emit_changed() equals to the currently edited resource in the editor, edit p_resource (with _resource_selected() ). I couldn't figure out how to check if the current resource is the one currently edited; this shouldn't happen for unrelated resources.
Of course there might be a different fix. |
Godot version:
master 86d6a72
both GLES3 and GLES2
OS/device including version:
Windows 10 64-bit
GTX 1060 6GB
Issue description:
TextureRegion gets "disconnected from duplicate TextureRect's Atlas Texture when you make it unique"
It works fine with a Sprite.
Steps to reproduce:
To fix it:
The text was updated successfully, but these errors were encountered: