Fix for #6158. Converting Vector2 to Size2 for scaling functions.
This commit is contained in:
parent
c05ff0577f
commit
aa5ade834c
9 changed files with 39 additions and 52 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue