From cefef7db054c3f4e81303f24defdc66d20815468 Mon Sep 17 00:00:00 2001 From: amor Date: Fri, 28 May 2021 18:20:13 +0530 Subject: [PATCH] Fixed inspector not updating anchor (cherry picked from commit dacc726faf6ca263bd8c17f1f8803a61e21803a9) --- scene/gui/control.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index 6c38b16455..5806e2f0dd 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -89,6 +89,10 @@ void Control::_edit_set_state(const Dictionary &p_state) { data.margin[MARGIN_RIGHT] = margins[2]; data.margin[MARGIN_BOTTOM] = margins[3]; _size_changed(); + _change_notify("anchor_left"); + _change_notify("anchor_right"); + _change_notify("anchor_top"); + _change_notify("anchor_bottom"); } void Control::_edit_set_position(const Point2 &p_position) {