diff options
| author | Wilson E. Alvarez | 2017-08-21 15:15:36 -0400 |
|---|---|---|
| committer | Wilson E. Alvarez | 2017-08-21 15:15:55 -0400 |
| commit | 738d2ab96997faa1e13b91e38cf8a0000d829f70 (patch) | |
| tree | e33258663017edb924695e68224ba836e5fc9f08 /scene/2d/polygon_2d.cpp | |
| parent | 4717d37bfa867d8cdcd4805967324978da6701b7 (diff) | |
| download | godot-738d2ab96997faa1e13b91e38cf8a0000d829f70.tar.gz godot-738d2ab96997faa1e13b91e38cf8a0000d829f70.tar.zst godot-738d2ab96997faa1e13b91e38cf8a0000d829f70.zip | |
Diffstat (limited to 'scene/2d/polygon_2d.cpp')
| -rw-r--r-- | scene/2d/polygon_2d.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scene/2d/polygon_2d.cpp b/scene/2d/polygon_2d.cpp index 7e2d6d1b5..cde572406 100644 --- a/scene/2d/polygon_2d.cpp +++ b/scene/2d/polygon_2d.cpp @@ -143,9 +143,7 @@ void Polygon2D::_notification(int p_what) { Transform2D texmat(tex_rot, tex_ofs); texmat.scale(tex_scale); - Size2 tex_size = Vector2(1, 1); - - tex_size = texture->get_size(); + Size2 tex_size = texture->get_size(); uvs.resize(points.size()); if (points.size() == uv.size()) { |
