From 59a2ec4db1b1c8ba29d2c30dc0effe665b57c3a7 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Fri, 29 Nov 2024 15:51:03 +0200 Subject: [PATCH] Fix layer effect applying not updating the tilesets properly --- src/UI/Timeline/LayerEffects/LayerEffectsSettings.gd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/UI/Timeline/LayerEffects/LayerEffectsSettings.gd b/src/UI/Timeline/LayerEffects/LayerEffectsSettings.gd index 9560a8ffa..757ad5b12 100644 --- a/src/UI/Timeline/LayerEffects/LayerEffectsSettings.gd +++ b/src/UI/Timeline/LayerEffects/LayerEffectsSettings.gd @@ -164,8 +164,12 @@ func _apply_effect(layer: BaseLayer, effect: LayerEffect) -> void: var image_size := cel_image.get_size() var shader_image_effect := ShaderImageEffect.new() shader_image_effect.generate_image(cel_image, effect.shader, effect.params, image_size) + + project.update_tilesets(undo_data) + for frame in project.frames: + var cel := frame.cels[layer.index] + var cel_image := cel.get_image() if cel is CelTileMap: - (cel as CelTileMap).update_tileset() redo_data[cel] = (cel as CelTileMap).serialize_undo_data() if cel_image is ImageExtended: redo_data[cel_image.indices_image] = cel_image.indices_image.data