1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Use 8×8 default grid size for TextureRegion and 2D polygon editors

Power-of-two grid sizes are more suited to most game assets.
This commit is contained in:
Hugo Locurcio
2023-02-21 17:02:24 +01:00
parent 7e79aead99
commit 0f73ef1df9
3 changed files with 6 additions and 3 deletions

View File

@@ -1075,7 +1075,8 @@ TextureRegionEditor::TextureRegionEditor() {
preview_tex = Ref<CanvasTexture>(memnew(CanvasTexture));
snap_step = Vector2(10, 10);
// A power-of-two value works better as a default grid size.
snap_step = Vector2(8, 8);
snap_separation = Vector2(0, 0);
snap_mode = SNAP_NONE;
edited_margin = -1;