mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Fix layer effect applying not updating the tilesets properly
This commit is contained in:
parent
6243d1dc3d
commit
d35b78f013
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue