Переглянути джерело

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();
 	update();
 	_notify_transform();
 	_notify_transform();
+	_change_notify("rect_scale");
 }
 }
 Vector2 Control::get_scale() const {
 Vector2 Control::get_scale() const {
 	return data.scale;
 	return data.scale;