소스 검색

Merge pull request #49167 from amoriqbal/3.3-inspector-patch

Fixed inspector not updating anchor
Rémi Verschelde 4 년 전
부모
커밋
03f275e66f
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      scene/gui/control.cpp

+ 4 - 0
scene/gui/control.cpp

@@ -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) {