浏览代码

Fixed a bug where bounds of a non scaled/rotated SpriteBatch got calculated wrong.

Stefan Langeder 9 年之前
父节点
当前提交
f4e3ac5c2f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h2d/SpriteBatch.hx

+ 1 - 1
h2d/SpriteBatch.hx

@@ -174,7 +174,7 @@ class SpriteBatch extends Drawable {
 				y = py * ca + px * sa + e.y;
 				addBounds(relativeTo, out, x, y, 1e-10, 1e-10);
 			} else
-				addBounds(relativeTo, out, e.x + tile.dx, e.y + tile.dy, tile.width, tile.height);
+				addBounds(relativeTo, out, e.x + t.dx, e.y + t.dy, t.width, t.height);
 			e = e.next;
 		}
 	}