mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-15 18:13:15 +00:00
fix second grid not *shown* removed when first grid has default values.
This commit is contained in:
parent
6224d06428
commit
2634f8dd7c
1 changed files with 4 additions and 0 deletions
|
@ -752,7 +752,11 @@ func _ready() -> void:
|
||||||
|
|
||||||
|
|
||||||
func update_grids(grids_data: Dictionary):
|
func update_grids(grids_data: Dictionary):
|
||||||
|
# Remove old grids
|
||||||
grids.clear()
|
grids.clear()
|
||||||
|
if is_instance_valid(Global.canvas.grid):
|
||||||
|
Global.canvas.grid.queue_redraw()
|
||||||
|
# ADD new ones
|
||||||
for grid_idx in grids_data.size():
|
for grid_idx in grids_data.size():
|
||||||
Grid.new(grids_data[grid_idx]) # gets auto added to grids array
|
Grid.new(grids_data[grid_idx]) # gets auto added to grids array
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue