Skip to content

Commit

Permalink
Merge pull request #49167 from amoriqbal/3.3-inspector-patch
Browse files Browse the repository at this point in the history
Fixed inspector not updating anchor
  • Loading branch information
akien-mga authored Jun 20, 2021
2 parents 6fecadd + dacc726 commit 03f275e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scene/gui/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,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) {
Expand Down

0 comments on commit 03f275e

Please sign in to comment.