mapeditor / tiled

Flexible level editor
https://www.mapeditor.org/
Other
11.16k stars 1.76k forks source link

Replace tileset deleting from map tiles #4019

Open ManPython opened 2 months ago

ManPython commented 2 months ago

Describe the bug Replace tileset deleting from map tiles, in case this is way to update a changed sprite or other

To Reproduce

  1. Load some sprite
  2. Change in sprite and try refresh (it need function to refresh sprite)

Expected behavior Replace tilesets as images by ID not delete if replace.. or give function to refresh, co replace mind change to other, but not good way to refresh image.

Media simple case to explain

Specifications:

bjorn commented 1 month ago

I’m having a bit of trouble understanding the problem. Could you clarify what you mean by 'sprite' in 'Load some sprite'? Also, what do you mean by 'Change in sprite and try refresh'?

Just to clarify, are you referring to using the 'Replace Tileset' action? If so, could it be that the new tileset you tried to load didn’t have certain tile IDs that were used in the map from the previous tileset?

ManPython commented 1 month ago

Exist sprite as tileset, then I edited image - normally is refreshed due flush for file (but not always - depend app type). Trying check actual state of file want refresh manually, then app opening pop window to select file (But why if exist). By this.. refresh or replace?

I just want replace tileset images with sprites but not deleting tiles on map, the function deleting when replace. No sense to replace if deleting, it's better to add new tileset in this case, coz no any value for user to replace if deleted tiles on map.. Or can be option to replace with delete as additional function (icon or RMB on replace icon "replace with deletion tiles on map").