Merge pull request #34188 from dankan1890/quick_fix
Fix TilesetEditorContext snaps separation.
This commit is contained in:
commit
097a561fc3
|
@ -2535,7 +2535,7 @@ void TileSetEditor::draw_grid_snap() {
|
||||||
if (i == 0 && snap_offset.y != 0) {
|
if (i == 0 && snap_offset.y != 0) {
|
||||||
last_p = snap_offset.y;
|
last_p = snap_offset.y;
|
||||||
}
|
}
|
||||||
if (snap_separation.x != 0) {
|
if (snap_separation.y != 0) {
|
||||||
if (i != 0) {
|
if (i != 0) {
|
||||||
workspace->draw_rect(Rect2(0, last_p, s.width, snap_separation.y), grid_color);
|
workspace->draw_rect(Rect2(0, last_p, s.width, snap_separation.y), grid_color);
|
||||||
last_p += snap_separation.y;
|
last_p += snap_separation.y;
|
||||||
|
|
Loading…
Reference in a new issue