-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Disable/Remove caching of images #2081
Comments
Actually the cache does get refreshed when the image changes on disk, but there is currently something broken about that when you change the image in Photoshop (see #44, and of course there may be other applications triggering this bug). There is a hidden shortcut (well, it's in the manual...) to force a reload of the tilesets used by the current map (Ctrl+T), which also updates the cache. I'm marking this issue as a bug and not a duplicate of #44, because I do think the image cache needs to remember the timestamp of the image, so that at least a changed image will be reloaded when opening / closing the tileset or when changing the image referenced by a tileset. |
Sorry, of course this workaround doesn't help you at all when using image layers... Also the automatic reload on change was never extended to image layers (#912 tries to address this, but the patch duplicates too much code from the TilesetManager). |
I was just about to add an issue on this and found this. Very nice that there is a hotkey to fix it. However I also think marking as bug is fair as I think it should be updated by default. Interestingly too once you used CTRL+T it automatically does update if you change again during that session. BTW bug also seems to apply for the size display in the properties. |
I pushed a fix for the caching of images, such that after changing an image and then doing anything in Tiled that should reload the image (like changing the image source of an image layer), the image will get reloaded. This is based on remembering and checking the modification time of the image. This does not make image layer images reload immediately though, like suggested in the original report. That's a missing feature covered by issue #825. |
@X-Ray-Jin Which size display did you mean?
Please let me know if this issue remains after this fix, cause I'm not entirely sure if it's related to the image cache. I personally don't understand why resetting the image would be needed here, rather than just opening and re-saving the file. |
@bjorn For the second part I am kind of sure that it will not include that. Maybe you didnt understand what I was talking about. It would be nice if one could skip the step of loading the set and saving manually after an image changed. In bigger projects or when several people are involved it might not always be obvious where an image is used. But as I said I guess that is not so easy and requires some kind auto checking, probably in a project like structure. I know you planned something like projects so maybe it is a thing to consider when it is time :) And as it is not too much work to manually do it and also doesnt occur too often I guess it is fine for now. |
When I set an image, and then change the image in an image editor, the image does not get updated.
If I choose another image and then go back to the previous image (that I edited) it is still not changed. It seems like it is cached. I have to restart Tiled to fix this.
Please add an option to update the image. Thanks.
Steps to reproduce
Actual result
There is no way to have the image layer use the newest version of the image other than restarting Tiled.
Expected result
The image is automatically updated, or there is an option for it to do so.
The text was updated successfully, but these errors were encountered: