1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +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

@@ -212,7 +212,8 @@ private:
bool selected_from_canvas = false;
Point2 grid_offset;
Point2 grid_step = Point2(8, 8); // A power-of-two value works better as a default.
// A power-of-two value works better as a default grid size.
Point2 grid_step = Point2(8, 8);
int primary_grid_steps = 8;
int grid_step_multiplier = 0;