diff --git a/addons/Godoxel/dialogs/ChangeGridSizeDialog.gd b/addons/Godoxel/dialogs/ChangeGridSizeDialog.gd index 645e70f..2aea630 100644 --- a/addons/Godoxel/dialogs/ChangeGridSizeDialog.gd +++ b/addons/Godoxel/dialogs/ChangeGridSizeDialog.gd @@ -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 diff --git a/addons/Godoxel/dialogs/ConfirmationDialog.gd b/addons/Godoxel/dialogs/ConfirmationDialog.gd index 7e86413..07b15a0 100644 --- a/addons/Godoxel/dialogs/ConfirmationDialog.gd +++ b/addons/Godoxel/dialogs/ConfirmationDialog.gd @@ -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