diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-21 08:58:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 08:58:07 +0200 |
commit | 177ac34fd05b286d7195b9090169a4e0247defea (patch) | |
tree | fea8897f3257546fb902bafde35ed66e4d8812a1 /editor | |
parent | ff85bbc41c4f7c416c04f29d59284097a84f41c3 (diff) | |
parent | 429382b7e57c81a34e7c7692979ce5a69ab3e1f4 (diff) |
Merge pull request #50670 from foxydevloper/fix-horizontal-frames-seperators
Fix setting horizontal frames to 1 hiding seperators
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/sprite_frames_editor_plugin.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/editor/plugins/sprite_frames_editor_plugin.cpp b/editor/plugins/sprite_frames_editor_plugin.cpp index cd06fdc757..9bb8fbacbb 100644 --- a/editor/plugins/sprite_frames_editor_plugin.cpp +++ b/editor/plugins/sprite_frames_editor_plugin.cpp @@ -65,13 +65,11 @@ void SpriteFramesEditor::_sheet_preview_draw() { int x = i * width; 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)); - - for (int j = 1; j < v; j++) { - int y = j * height; - - split_sheet_preview->draw_line(Point2(0, y), Point2(size.width, y), Color(1, 1, 1, a)); - split_sheet_preview->draw_line(Point2(0, y + 1), Point2(size.width, y + 1), Color(0, 0, 0, a)); - } + } + for (int i = 1; i < v; i++) { + int y = i * height; + split_sheet_preview->draw_line(Point2(0, y), Point2(size.width, y), Color(1, 1, 1, a)); + split_sheet_preview->draw_line(Point2(0, y + 1), Point2(size.width, y + 1), Color(0, 0, 0, a)); } if (frames_selected.size() == 0) { |