mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix for #6158. Converting Vector2 to Size2 for scaling functions.
(cherry picked from commit aa5ade834c)
This commit is contained in:
committed by
Rémi Verschelde
parent
c8299249e4
commit
12edde80f2
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user