From 8b4cf15951a4079bbeabdd5d546e5d66cee4a47b Mon Sep 17 00:00:00 2001 From: cobrapitz <12397702+cobrapitz@users.noreply.github.com> Date: Mon, 23 Nov 2020 06:29:20 +0100 Subject: [PATCH] fixed potential bug when owner isn't ready but children are --- addons/Godoxel/dialogs/ChangeGridSizeDialog.gd | 1 + addons/Godoxel/dialogs/ConfirmationDialog.gd | 1 + 2 files changed, 2 insertions(+) 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