浏览代码

Fix default values for rotation snapping in canvas_item_editor_plugin.cpp

Default values for snap_rotation_step and snap_rotation_offset were transposed. Swap them back.
SnailRhymer 3 年之前
父节点
当前提交
0ac971c0d3
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      editor/plugins/canvas_item_editor_plugin.h

+ 2 - 2
editor/plugins/canvas_item_editor_plugin.h

@@ -214,8 +214,8 @@ private:
 	int primary_grid_steps = 8;
 	int grid_step_multiplier = 0;
 
-	real_t snap_rotation_step = 0.0;
-	real_t snap_rotation_offset = Math::deg2rad(15.0);
+	real_t snap_rotation_step = Math::deg2rad(15.0);
+	real_t snap_rotation_offset = 0.0;
 	real_t snap_scale_step = 0.1f;
 	bool smart_snap_active = false;
 	bool grid_snap_active = false;