Fix for #6158. Converting Vector2 to Size2 for scaling functions.

(cherry picked from commit aa5ade834c)
This commit is contained in:
anneomcl
2016-09-19 21:36:24 -07:00
committed by Rémi Verschelde
parent c8299249e4
commit 12edde80f2
9 changed files with 39 additions and 52 deletions

View File

@@ -253,7 +253,7 @@ void Node2D::global_translate(const Vector2& p_amount) {
set_global_pos( get_global_pos() + p_amount );
}
void Node2D::scale(const Vector2& p_amount) {
void Node2D::scale(const Size2& p_amount) {
set_scale( get_scale() * p_amount );
}