mirror of
https://github.com/godotengine/godot.git
synced 2025-01-18 20:40:57 +08:00
Fix typo in SpriteFrameEditor preview draw
As spotted by @DennisWG.
This commit is contained in:
parent
7be498499b
commit
c1444ebeaf
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user