浏览代码

Fix typo in SpriteFrameEditor preview draw

As spotted by @DennisWG.
Rémi Verschelde 6 年之前
父节点
当前提交
c1444ebeaf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/plugins/sprite_frames_editor_plugin.cpp

+ 1 - 1
editor/plugins/sprite_frames_editor_plugin.cpp

@@ -59,7 +59,7 @@ void SpriteFramesEditor::_sheet_preview_draw() {
 		for (int j = 1; j < v; j++) {
 
 			int x = i * size.width / h;
-			int y = i * size.height / v;
+			int y = j * size.height / v;
 
 			split_sheet_preview->draw_line(Point2(x, 0), Point2(x, size.height), Color(1, 1, 1, a));
 			split_sheet_preview->draw_line(Point2(x + 1, 0), Point2(x + 1, size.height), Color(0, 0, 0, a));