diff options
author | sanikoyes <sanikoyes@163.com> | 2014-03-19 15:55:12 +0800 |
---|---|---|
committer | sanikoyes <sanikoyes@163.com> | 2014-03-19 15:55:12 +0800 |
commit | bc4e37b1322c8fa7c13b40e69d78483bbd6277dc (patch) | |
tree | 71a82a4f7f72df1d100a5cebbbd208818db2cba6 /scene/resources/texture.cpp | |
parent | 3037b3f6dcaea2de9de058d715a4e3dafc974039 (diff) |
fix a mistake
Diffstat (limited to 'scene/resources/texture.cpp')
-rw-r--r-- | scene/resources/texture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp index 8dbb73e23d..a29fc5d921 100644 --- a/scene/resources/texture.cpp +++ b/scene/resources/texture.cpp @@ -583,7 +583,7 @@ void AtlasTexture::draw_rect_region(RID p_canvas_item,const Rect2& p_rect, const if(scale.x >= 0 && scale.y >= 0) { - Rect2 dr(src_c.size*scale,p_rect.pos+ofs*scale); + Rect2 dr(p_rect.pos+ofs*scale,src_c.size*scale); VS::get_singleton()->canvas_item_add_texture_rect_region(p_canvas_item,dr,atlas->get_rid(),src_c,p_modulate); } else |