diff options
author | reduz <reduzio@gmail.com> | 2015-12-29 18:27:20 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2015-12-29 18:27:20 -0300 |
commit | 196b3e03fc4887ed90bf6411f457e66d1e697fd8 (patch) | |
tree | b805f847a8a46bd50a5c7a1bb643266882a05310 /scene/2d | |
parent | 875bff2c4e95e63c0eeca9d3fbe28bae79095a64 (diff) |
Fix CanvasItem.draw_set_transform to act according to docs, fixes #2487
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/canvas_item.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/canvas_item.cpp b/scene/2d/canvas_item.cpp index 7df6864a65..b1ad50a1b1 100644 --- a/scene/2d/canvas_item.cpp +++ b/scene/2d/canvas_item.cpp @@ -773,7 +773,7 @@ void CanvasItem::draw_set_transform(const Point2& p_offset, float p_rot, const S Matrix32 xform(p_rot,p_offset); xform.scale_basis(p_scale); - VisualServer::get_singleton()->canvas_item_set_transform(canvas_item,xform); + VisualServer::get_singleton()->canvas_item_add_set_transform(canvas_item,xform); } void CanvasItem::draw_polygon(const Vector<Point2>& p_points, const Vector<Color>& p_colors,const Vector<Point2>& p_uvs, Ref<Texture> p_texture) { |