diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-04-20 09:08:05 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-04-20 09:08:07 +0200 |
commit | c1444ebeaf4a17e5c3489dded45ae71f96341bd3 (patch) | |
tree | 93fe69e5cd615a00d2f532031254800fbc74e264 /editor/plugins | |
parent | 7be498499b4ebef8761082c5b83f8fbc2f06cd92 (diff) |
Fix typo in SpriteFrameEditor preview draw
As spotted by @DennisWG.
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/sprite_frames_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/sprite_frames_editor_plugin.cpp b/editor/plugins/sprite_frames_editor_plugin.cpp index 33b8347f94..afe0b23fd9 100644 --- a/editor/plugins/sprite_frames_editor_plugin.cpp +++ b/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)); |