瀏覽代碼

added _change_notify in Control::set_scale to fix iss48936

phil-shenk 4 年之前
父節點
當前提交
04729d9c65
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scene/gui/control.cpp

+ 1 - 0
scene/gui/control.cpp

@@ -2586,6 +2586,7 @@ void Control::set_scale(const Vector2 &p_scale) {
 	}
 	update();
 	_notify_transform();
+	_change_notify("rect_scale");
 }
 Vector2 Control::get_scale() const {
 	return data.scale;