1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-15 10:13:07 +00:00

fix second grid not *shown* removed when first grid has default values.

This commit is contained in:
Variable 2024-11-26 01:23:10 +05:00
parent 6224d06428
commit 2634f8dd7c

View file

@ -752,7 +752,11 @@ func _ready() -> void:
func update_grids(grids_data: Dictionary):
# Remove old grids
grids.clear()
if is_instance_valid(Global.canvas.grid):
Global.canvas.grid.queue_redraw()
# ADD new ones
for grid_idx in grids_data.size():
Grid.new(grids_data[grid_idx]) # gets auto added to grids array