浏览代码

Change the 2D editor's snap to 8x8 by default

xelivous 5 年之前
父节点
当前提交
64ae7feaa4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/plugins/canvas_item_editor_plugin.cpp

+ 1 - 1
editor/plugins/canvas_item_editor_plugin.cpp

@@ -5250,7 +5250,7 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
 	view_offset = Point2(-150 - RULER_WIDTH, -95 - RULER_WIDTH);
 	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
 	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_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
 	primary_grid_steps = 8; // A power-of-two value works better as a default
 	grid_step_multiplier = 0;
 	grid_step_multiplier = 0;
 	snap_rotation_offset = 0;
 	snap_rotation_offset = 0;