You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user