fixed potential bug when owner isn't ready but children are

This commit is contained in:
cobrapitz 2020-11-23 06:29:20 +01:00
parent d6402d1b05
commit 8b4cf15951
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ extends AcceptDialog
tool
func _ready():
yield(owner, "ready")
find_node("GridValue").value = owner.paint_canvas.grid_size
find_node("BigGridValue").value = owner.paint_canvas.big_grid_size

View File

@ -2,6 +2,7 @@ extends ConfirmationDialog
tool
func _ready():
yield(owner, "ready")
find_node("Width").value = owner.paint_canvas.canvas_width
find_node("Height").value = owner.paint_canvas.canvas_height