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

This commit is contained in:
anneomcl 2016-09-19 21:36:24 -07:00
parent c05ff0577f
commit aa5ade834c
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 );
}