diff options
| author | alexholly <alexander.holland@live.de> | 2017-06-04 00:25:13 +0200 |
|---|---|---|
| committer | alexholly <alexander.holland@live.de> | 2017-06-04 02:09:17 +0200 |
| commit | a3c90b029308eb46b7fd83a0cf7b502ecbd79d55 (patch) | |
| tree | 37aaaa84b53d962b441de0683a502e189cb371bb /scene/2d/sprite.cpp | |
| parent | 69bec86028f87307e549d7a2f49bbb7e2b1f3771 (diff) | |
| download | redot-engine-a3c90b029308eb46b7fd83a0cf7b502ecbd79d55.tar.gz | |
renamed all Rect2.pos to Rect2.position
Diffstat (limited to 'scene/2d/sprite.cpp')
| -rw-r--r-- | scene/2d/sprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/sprite.cpp b/scene/2d/sprite.cpp index 1735bf3b91..c1eb90e52a 100644 --- a/scene/2d/sprite.cpp +++ b/scene/2d/sprite.cpp @@ -75,8 +75,8 @@ void Sprite::_notification(int p_what) { s = s / Size2(hframes, vframes); src_rect.size = s; - src_rect.pos.x += float(frame % hframes) * s.x; - src_rect.pos.y += float(frame / hframes) * s.y; + src_rect.position.x += float(frame % hframes) * s.x; + src_rect.position.y += float(frame / hframes) * s.y; } Point2 ofs = offset; |
