From 6fedc728f608f90cf645dbd542c378620beb6692 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 21 Feb 2023 17:02:24 +0100 Subject: =?UTF-8?q?Use=208=C3=978=20default=20grid=20size=20for=20TextureR?= =?UTF-8?q?egion=20and=202D=20polygon=20editors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Power-of-two grid sizes are more suited to most game assets. (cherry picked from commit 0f73ef1df9c092a8d2dea2861960e708d90fbd46) --- editor/plugins/texture_region_editor_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editor/plugins/texture_region_editor_plugin.cpp') diff --git a/editor/plugins/texture_region_editor_plugin.cpp b/editor/plugins/texture_region_editor_plugin.cpp index 7fa16e6cc6..96e9005850 100644 --- a/editor/plugins/texture_region_editor_plugin.cpp +++ b/editor/plugins/texture_region_editor_plugin.cpp @@ -1075,7 +1075,8 @@ TextureRegionEditor::TextureRegionEditor() { preview_tex = Ref(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; -- cgit v1.2.3