summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-01-08 08:51:58 +0100
committerGitHub <noreply@github.com>2020-01-08 08:51:58 +0100
commit41c8ec991f439c4d5ad88d67099c8e038988af9b (patch)
tree7fbc74eac46b8d67d36b7582dc4794d434d14daf
parent14b24b6a714283919137536eebffd31b8c7b2392 (diff)
parent64ae7feaa4041c8ca250c75484e34b9e40b7803b (diff)
Merge pull request #34802 from xelivous/power-of-two-is-good
Change the 2D editor's snap to 8x8 by default
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp
index 2b0c582b49..89e25ffcff 100644
--- a/editor/plugins/canvas_item_editor_plugin.cpp
+++ b/editor/plugins/canvas_item_editor_plugin.cpp
@@ -5255,7 +5255,7 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
view_offset = Point2(-150 - RULER_WIDTH, -95 - RULER_WIDTH);
previous_update_view_offset = view_offset; // Moves the view a little bit to the left so that (0,0) is visible. The values a relative to a 16/10 screen
grid_offset = Point2();
- grid_step = Point2(10, 10);
+ grid_step = Point2(8, 8); // A power-of-two value works better as a default
primary_grid_steps = 8; // A power-of-two value works better as a default
grid_step_multiplier = 0;
snap_rotation_offset = 0;