deepnight / ldtk

Modern, lightweight and efficient 2D level editor
https://ldtk.io
MIT License
3.44k stars 192 forks source link

[BUG] "autoTilesKilledByOtherLayerUid" is not cleared in existing layers, after another layer was deleted. #1128

Open s-kania opened 4 months ago

s-kania commented 4 months ago

Hi. Steps to reproduce:

  1. Create two layers, let it be X and Y.
  2. In X layer, set autoTilesKilledByOtherLayerUid to Z layer.
  3. Delete Z layer.
  4. References in X layer, in property autoTilesKilledByOtherLayerUid to Z layer still exist, validation throws bugs, because this layer not exist anymore.