From aa5ade834c8646b81e2320089314393c00ee8020 Mon Sep 17 00:00:00 2001 From: anneomcl Date: Mon, 19 Sep 2016 21:36:24 -0700 Subject: Fix for #6158. Converting Vector2 to Size2 for scaling functions. --- scene/2d/polygon_2d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scene/2d/polygon_2d.cpp') diff --git a/scene/2d/polygon_2d.cpp b/scene/2d/polygon_2d.cpp index cfb87fb998..12893524d1 100644 --- a/scene/2d/polygon_2d.cpp +++ b/scene/2d/polygon_2d.cpp @@ -288,12 +288,12 @@ float Polygon2D::_get_texture_rotationd() const{ } -void Polygon2D::set_texture_scale(const Vector2& p_scale){ +void Polygon2D::set_texture_scale(const Size2& p_scale){ tex_scale=p_scale; update(); } -Vector2 Polygon2D::get_texture_scale() const{ +Size2 Polygon2D::get_texture_scale() const{ return tex_scale; } -- cgit v1.2.3