summaryrefslogtreecommitdiffstats
path: root/scene/2d/node_2d.cpp
diff options
context:
space:
mode:
authoranneomcl <anneomclaughlin@gmail.com>2016-09-19 21:36:24 -0700
committeranneomcl <anneomclaughlin@gmail.com>2016-09-19 23:31:45 -0700
commitaa5ade834c8646b81e2320089314393c00ee8020 (patch)
tree55f00e22d4b499ab9486621a03d3649ae0f23835 /scene/2d/node_2d.cpp
parentc05ff0577fd9cc39a6968e65743f7d7da711bfe2 (diff)
downloadredot-engine-aa5ade834c8646b81e2320089314393c00ee8020.tar.gz
Fix for #6158. Converting Vector2 to Size2 for scaling functions.
Diffstat (limited to 'scene/2d/node_2d.cpp')
-rw-r--r--scene/2d/node_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/node_2d.cpp b/scene/2d/node_2d.cpp
index df43e8e373..b3f925cb14 100644
--- a/scene/2d/node_2d.cpp
+++ b/scene/2d/node_2d.cpp
@@ -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 );
}